Przeglądaj źródła

CubeGeometry: Cloning shared uvs as suggested by @WestLangley in #3762.

Mr.doob 12 lat temu
rodzic
commit
2dba6ba188
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/extras/geometries/CubeGeometry.js

+ 1 - 1
src/extras/geometries/CubeGeometry.js

@@ -104,7 +104,7 @@ THREE.CubeGeometry = function ( width, height, depth, widthSegments, heightSegme
 				face.materialIndex = materialIndex;
 
 				scope.faces.push( face );
-				scope.faceVertexUvs[ 0 ].push( [ uvb, uvc, uvd ] );
+				scope.faceVertexUvs[ 0 ].push( [ uvb.clone(), uvc, uvd.clone() ] );
 
 			}