                                                     (animate (draw-fn gl driver) tick (-> state
                                                                                           (assoc-in [:gltf] gltf)))))
                   (animate (draw-fn gl driver) tick (-> state
-                                                                (assoc-in [:gltf] gltf))))))))
+                                                        (assoc-in [:gltf] gltf))))))))

                            (let [mv (geom/* mv (:matrix node))]
                              (doseq [mesh (:meshes node)]
                                (doseq [mesh (:primitives mesh)]
                                  (let [vertices         (get-in mesh [:attributes :p :data])
                                        p-stride         (get-in mesh [:attributes :p :byteStride])
                                        tex-coord-0      (get-in mesh [:attributes :tex-coord-0 :data])
                                        normals          (get-in mesh [:attributes :normal :data])
                                        n-stride         (get-in mesh [:attributes :normal :byteStride])
                                        indices          (get-in mesh [:indices])
                                        material         (get-in mesh [:material :values :diffuse])

                                                                                  material
                                                                                  tex-coord-0)
                                                                        (:inputs program)))]
                                    ;;(js/console.log (pr-str program-name))
                                    ;; Check for normals so we don't try to draw e.g. lines right now.
                                    (when (and diffuse normals)
                                      (gd/draw-elements driver (gd/bind driver program
                                                                        (assoc scene-data
                                                                               {:tag :element-index} indices))
                                                        {:draw-mode (:draw-mode mesh)
                                                         :count     draw-count})))))
                              (doseq [child (vals (:children node))]
                                (render-node [(:name child) child] mv))))]
      (doseq [node (:nodes scene)]
