Explorar o código

moved flipY = false to CubeTexture.js

Lachlan Ford %!s(int64=10) %!d(string=hai) anos
pai
achega
050f56e52b
Modificáronse 2 ficheiros con 2 adicións e 4 borrados
  1. 0 4
      src/extras/ImageUtils.js
  2. 2 0
      src/textures/CubeTexture.js

+ 0 - 4
src/extras/ImageUtils.js

@@ -43,10 +43,6 @@ THREE.ImageUtils = {
 
 		var texture = new THREE.CubeTexture( images, mapping );
 
-		// no flipping needed for cube textures
-
-		texture.flipY = false;
-
 		var loaded = 0;
 
 		var loadTexture = function ( i ) {

+ 2 - 0
src/textures/CubeTexture.js

@@ -10,6 +10,8 @@ THREE.CubeTexture = function ( images, mapping, wrapS, wrapT, magFilter, minFilt
 
 	this.images = images;
 
+    this.flipY = false;
+
 };
 
 THREE.CubeTexture.prototype = Object.create( THREE.Texture.prototype );

粤ICP备19079148号