Browse Source

Add missing properties to Texture.toJSON()

Takahiro 7 years ago
parent
commit
1f3207f157
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/textures/Texture.js

+ 8 - 1
src/textures/Texture.js

@@ -191,11 +191,18 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
 			wrap: [ this.wrapS, this.wrapT ],
 
 			format: this.format,
+			type: this.type,
+			encoding: this.encoding,
+
 			minFilter: this.minFilter,
 			magFilter: this.magFilter,
 			anisotropy: this.anisotropy,
+			mipmaps: this.mipmaps.slice(),
+
+			flipY: this.flipY,
 
-			flipY: this.flipY
+			premultiplyAlpha: this.premultiplyAlpha,
+			unpackAlignment: this.unpackAlignment
 
 		};