2
0
Эх сурвалжийг харах

fix webGLBufferRenderer renderInstance bug when position is interleavedBufferAttribute

06wj 7 жил өмнө
parent
commit
4e6efbabe7

+ 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 );