Browse Source

Editor/App: More robust gamma handling.

Mr.doob 9 năm trước cách đây
mục cha
commit
9b45897023
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      editor/js/libs/app.js

+ 3 - 2
editor/js/libs/app.js

@@ -27,8 +27,9 @@ var APP = {
 			renderer = new THREE.WebGLRenderer( { antialias: true } );
 			renderer.setClearColor( 0x000000 );
 			renderer.setPixelRatio( window.devicePixelRatio );
-			renderer.gammaInput = json.project.gammaInput;
-			renderer.gammaOutput = json.project.gammaOutput;
+
+			if ( json.project.gammaInput ) renderer.gammaInput = true;
+			if ( json.project.gammaOutput ) renderer.gammaOutput = true;
 
 			if ( json.project.shadows ) {