Comparing version 0.0.91 to 0.0.92
{ | ||
"name": "ogl", | ||
"version": "0.0.91", | ||
"version": "0.0.92", | ||
"description": "WebGL Library", | ||
@@ -5,0 +5,0 @@ "main": "src/index.mjs", |
@@ -511,5 +511,5 @@ import { Geometry } from '../core/Geometry.js'; | ||
mesh.name = name; | ||
// Tag mesh so that nodes can add their transforms to the instance attribute | ||
mesh.numInstances = numInstances; | ||
if (mesh.geometry.attributes.instanceMatrix) { | ||
// Tag mesh so that nodes can add their transforms to the instance attribute | ||
mesh.numInstances = numInstances; | ||
// Avoid incorrect culling for instances | ||
@@ -516,0 +516,0 @@ mesh.frustumCulled = false; |
291301