Explorar el Código

[BufferGeometry] normalizeNormals

Fix for InterleavedBufferAttribute
Brian Burke hace 8 años
padre
commit
8810f7d663
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/core/BufferGeometry.js

+ 2 - 2
src/core/BufferGeometry.js

@@ -821,8 +821,8 @@ Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
 		for ( var i = 0, il = normals.count; i < il; i ++ ) {
 
 			x = normals.getX( i );
-			y = normals.getY( i );;
-			z = normals.getZ( i );;
+			y = normals.getY( i );
+			z = normals.getZ( i );
 
 			n = 1.0 / Math.sqrt( x * x + y * y + z * z );