提交 d46d7b05 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #10881 from Mugen87/dev

DecalGeometry: Fixed index read access
......@@ -82,8 +82,8 @@ function DecalGeometry( mesh, position, orientation, size ) {
for ( i = 0; i < index.count; i ++ ) {
vertex.fromBufferAttribute( positionAttribute, index[ i ] );
normal.fromBufferAttribute( normalAttribute, index[ i ] );
vertex.fromBufferAttribute( positionAttribute, index.getX( i ) );
normal.fromBufferAttribute( normalAttribute, index.getX( i ) );
pushDecalVertex( decalVertices, vertex, normal );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册