|
@@ -663,6 +663,8 @@ Object.assign( ObjectLoader.prototype, {
|
|
|
}
|
|
|
|
|
|
if ( data.format !== undefined ) texture.format = data.format;
|
|
|
+ if ( data.type !== undefined ) texture.type = data.type;
|
|
|
+ if ( data.encoding !== undefined ) texture.encoding = data.encoding;
|
|
|
|
|
|
if ( data.minFilter !== undefined ) texture.minFilter = parseConstant( data.minFilter, TEXTURE_FILTER );
|
|
|
if ( data.magFilter !== undefined ) texture.magFilter = parseConstant( data.magFilter, TEXTURE_FILTER );
|
|
@@ -670,6 +672,9 @@ Object.assign( ObjectLoader.prototype, {
|
|
|
|
|
|
if ( data.flipY !== undefined ) texture.flipY = data.flipY;
|
|
|
|
|
|
+ if ( data.premultiplyAlpha !== undefined ) texture.premultiplyAlpha = data.premultiplyAlpha;
|
|
|
+ if ( data.unpackAlignment !== undefined ) texture.unpackAlignment = data.unpackAlignment;
|
|
|
+
|
|
|
textures[ data.uuid ] = texture;
|
|
|
|
|
|
}
|