提交 26b0f028 编写于 作者: M Mr.doob

Updated ui.three.js

上级 1d48d3cb
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册