Explorar o código

Updated ui.three.js

Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
26b0f028fb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      editor/js/libs/ui.three.js

+ 1 - 0
editor/js/libs/ui.three.js

@@ -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 );