Browse Source

Use sRGBEncoding

WestLangley 5 năm trước cách đây
mục cha
commit
e1482cfb8f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/webgl_pmrem_test.html

+ 1 - 1
examples/webgl_pmrem_test.html

@@ -42,7 +42,7 @@
 				renderer = new THREE.WebGLRenderer( { antialias: true } );
 				renderer.setPixelRatio( window.devicePixelRatio );
 				renderer.setSize( width, height );
-				renderer.gammaOutput = true;
+				renderer.outputEncoding = THREE.sRGBEncoding;
 				renderer.physicallyCorrectLights = true;
 
 				// tonemapping