We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80cccc commit 2f1fa4eCopy full SHA for 2f1fa4e
src/loaders/ObjectLoader.js
@@ -965,7 +965,7 @@ class ObjectLoader extends Loader {
965
966
object = new InstancedMesh( geometry, material, count );
967
object.instanceMatrix = new BufferAttribute( new Float32Array( instanceMatrix.array ), 16 );
968
- if ( instanceColor !== undefined ) object.instanceColor = new BufferAttribute( new Float32Array( instanceColor.array ), 3 );
+ if ( instanceColor !== undefined ) object.instanceColor = new BufferAttribute( new Float32Array( instanceColor.array ), instanceColor.itemSize );
969
970
break;
971
0 commit comments