diff --git a/src/objects/InstancedMesh.js b/src/objects/InstancedMesh.js index d5dce2fca07a50a500e48bf30c405f33da079220..1ccf4a14a90231a8309308dafa0a8058c493f708 100644 --- a/src/objects/InstancedMesh.js +++ b/src/objects/InstancedMesh.js @@ -95,7 +95,7 @@ class InstancedMesh extends Mesh { if ( this.instanceColor === null ) { - this.instanceColor = new BufferAttribute( new Float32Array( this.count * 3 ), 3 ); + this.instanceColor = new BufferAttribute( new Float32Array( this.instanceMatrix.count * 3 ), 3 ); }