Browse Source

moved flipY = false to CubeTexture.js

Lachlan Ford 10 years ago
parent
commit
050f56e52b
2 changed files with 2 additions and 4 deletions
  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 );