未验证 提交 13bde276 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #18186 from Mugen87/dev26

Editor: Use sRGBEncoding as output encoding.
......@@ -313,7 +313,7 @@ var Viewport = function ( editor ) {
renderer.autoClear = false;
renderer.autoUpdateScene = false;
renderer.outputEncoding = THREE.GammaEncoding;
renderer.outputEncoding = THREE.sRGBEncoding;
renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( container.dom.offsetWidth, container.dom.offsetHeight );
......
......@@ -21,7 +21,7 @@ var APP = {
this.load = function ( json ) {
renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.outputEncoding = THREE.GammaEncoding;
renderer.outputEncoding = THREE.sRGBEncoding;
renderer.setClearColor( 0x000000 );
renderer.setPixelRatio( window.devicePixelRatio );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册