未验证 提交 ea3762da 编写于 作者: F FoolHen 提交者: GitHub

Fix color attribute initialization of InstancedMesh (#22171)

* Fix color attribute initialization in InstancedMesh

* Use matrix buffer size instead of storing maxcount
上级 30c07bc9
......@@ -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 );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册