|
@@ -79,6 +79,7 @@ UI.Texture = function ( mapping ) {
|
|
|
|
|
|
var texture = new THREE.Texture( this, mapping );
|
|
|
texture.sourceFile = file.name;
|
|
|
+ texture.format = file.type === 'image/jpeg' ? THREE.RGBFormat : THREE.RGBAFormat;
|
|
|
texture.needsUpdate = true;
|
|
|
|
|
|
scope.setValue( texture );
|