提交 4e6efbab 编写于 作者: 0 06wj

fix webGLBufferRenderer renderInstance bug when position is interleavedBufferAttribute

上级 02f52e0e
......@@ -31,20 +31,8 @@ function WebGLBufferRenderer( gl, extensions, info ) {
}
var position = geometry.attributes.position;
if ( position.isInterleavedBufferAttribute ) {
count = position.count;
extension.drawArraysInstancedANGLE( mode, 0, count, geometry.maxInstancedCount );
} else {
extension.drawArraysInstancedANGLE( mode, start, count, geometry.maxInstancedCount );
}
info.update( count, mode, geometry.maxInstancedCount );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册