Procházet zdrojové kódy

WebGLRenderer: Fixed handling of indexed buffergeometries with no offsets.

Mr.doob před 12 roky
rodič
revize
322f38b60d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -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 ) {
 

粤ICP备19079148号