Explorar o código

Add missing properties to Texture.toJSON()

Takahiro %!s(int64=8) %!d(string=hai) anos
pai
achega
1f3207f157
Modificáronse 1 ficheiros con 8 adicións e 1 borrados
  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
 
 		};
 

粤ICP备19079148号