提交 6d8059c9 编写于 作者: M Mr.doob

InstancedMesh: Changed setMatrixAt parameter order.

上级 01c6bb46
......@@ -57,7 +57,7 @@
dummy.updateMatrix();
mesh.setMatrixAt( dummy.matrix, i );
mesh.setMatrixAt( i, dummy.matrix );
}
......
......@@ -25,11 +25,11 @@ InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
raycast: function () {},
setMatrixAt: function ( matrix, offset ) {
setMatrixAt: function ( index, matrix ) {
matrix.toArray( this.instanceMatrix.array, offset * 16 );
matrix.toArray( this.instanceMatrix.array, index * 16 );
_matrix3.getNormalMatrix( matrix ).toArray( this.instanceNormalMatrix.array, offset * 9 );
_matrix3.getNormalMatrix( matrix ).toArray( this.instanceNormalMatrix.array, index * 9 );
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册