|
@@ -95,7 +95,7 @@ class InstancedMesh extends Mesh {
|
|
|
|
|
|
if ( this.instanceColor === null ) {
|
|
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 );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|