2
0
Эх сурвалжийг харах

Editor/App: More robust gamma handling.

Mr.doob 9 жил өмнө
parent
commit
9b45897023
1 өөрчлөгдсөн 3 нэмэгдсэн , 2 устгасан
  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 ) {