Browse Source

Texture.toJSON(): flipY support.

Mr.doob 9 years ago
parent
commit
9318d75f12
2 changed files with 5 additions and 1 deletions
  1. 2 0
      src/loaders/ObjectLoader.js
  2. 3 1
      src/textures/Texture.js

+ 2 - 0
src/loaders/ObjectLoader.js

@@ -401,6 +401,8 @@ Object.assign( THREE.ObjectLoader.prototype, {
 
 				}
 
+				if ( data.flipY !== undefined ) texture.flipY = data.flipY;
+
 				textures[ data.uuid ] = texture;
 
 			}

+ 3 - 1
src/textures/Texture.js

@@ -155,7 +155,9 @@ THREE.Texture.prototype = {
 
 			minFilter: this.minFilter,
 			magFilter: this.magFilter,
-			anisotropy: this.anisotropy
+			anisotropy: this.anisotropy,
+
+			flipY: this.flipY
 		};
 
 		if ( this.image !== undefined ) {