提交 1a0dfba3 编写于 作者: M Mugen87

Editor: Refactor encoding settings for background.

上级 9333efe5
......@@ -498,6 +498,12 @@ var Viewport = function ( editor ) {
}
if ( scene.background !== null && ( scene.background.isTexture || scene.background.isCubeTexture ) ) {
scene.background.encoding = THREE.sRGBEncoding;
}
render();
} );
......
......@@ -246,7 +246,6 @@ var UICubeTexture = function () {
if ( images.length === 6 ) {
var cubeTexture = new THREE.CubeTexture( images );
cubeTexture.encoding = THREE.sRGBEncoding;
cubeTexture.needsUpdate = true;
scope.cubeTexture = cubeTexture;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册