Prechádzať zdrojové kódy

fix webGLBufferRenderer renderInstance bug when position is interleavedBufferAttribute

06wj 7 rokov pred
rodič
commit
4e6efbabe7
1 zmenil súbory, kde vykonal 1 pridanie a 13 odobranie
  1. 1 13
      src/renderers/webgl/WebGLBufferRenderer.js

+ 1 - 13
src/renderers/webgl/WebGLBufferRenderer.js

@@ -31,19 +31,7 @@ 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 );
-
-		}
+		extension.drawArraysInstancedANGLE( mode, start, count, geometry.maxInstancedCount );
 
 		info.update( count, mode, geometry.maxInstancedCount );