Browse Source

CubeTexture: clone flipY. See #6838.

Mr.doob 10 years ago
parent
commit
97e5885d5b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/textures/CubeTexture.js

+ 3 - 3
src/textures/CubeTexture.js

@@ -5,12 +5,11 @@
 THREE.CubeTexture = function ( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
 THREE.CubeTexture = function ( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
 
 
 	mapping = mapping !== undefined ? mapping : THREE.CubeReflectionMapping;
 	mapping = mapping !== undefined ? mapping : THREE.CubeReflectionMapping;
-	
+
 	THREE.Texture.call( this, images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
 	THREE.Texture.call( this, images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
 
 
 	this.images = images;
 	this.images = images;
-
-    this.flipY = false;
+	this.flipY = false;
 
 
 };
 };
 
 
@@ -24,6 +23,7 @@ THREE.CubeTexture.clone = function ( texture ) {
 	THREE.Texture.prototype.clone.call( this, texture );
 	THREE.Texture.prototype.clone.call( this, texture );
 
 
 	texture.images = this.images;
 	texture.images = this.images;
+	texture.flipY = this.flipY;
 
 
 	return texture;
 	return texture;