|
@@ -207,7 +207,7 @@ class InstancedMesh extends Mesh {
|
|
|
|
|
|
if ( this.instanceColor === null ) {
|
|
if ( this.instanceColor === null ) {
|
|
|
|
|
|
- this.instanceColor = new InstancedBufferAttribute( new Float32Array( this.instanceMatrix.count * 3 ), 3 );
|
|
|
|
|
|
+ this.instanceColor = new InstancedBufferAttribute( new Float32Array( this.instanceMatrix.count * 3 ).fill( 1 ), 3 );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|