提交 322f38b6 编写于 作者: M Mr.doob

WebGLRenderer: Fixed handling of indexed buffergeometries with no offsets.

上级 85a72c53
......@@ -2611,7 +2611,7 @@ THREE.WebGLRenderer = function ( parameters ) {
attributeSize = attributeItem.itemSize;
_gl.bindBuffer( _gl.ARRAY_BUFFER, attributeItem.buffer );
enableAttribute( attributePointer );
_gl.vertexAttribPointer( attributePointer, attributeSize, _gl.FLOAT, false, 0, startIndex * attributeSize * 4 ); // 4 bytes per Float32
_gl.vertexAttribPointer( attributePointer, attributeSize, _gl.FLOAT, false, 0, 0 );
} else if ( material.defaultAttributeValues ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册