Jelajahi Sumber

remove stray gamma correction from ToneMapShader.

Ben Houston 10 tahun lalu
induk
melakukan
4fd2c9627f
1 mengubah file dengan 0 tambahan dan 2 penghapusan
  1. 0 2
      examples/js/shaders/ToneMapShader.js

+ 0 - 2
examples/js/shaders/ToneMapShader.js

@@ -67,8 +67,6 @@ THREE.ToneMapShader = {
 			"vec4 texel = texture2D( tDiffuse, vUv );",
 			
 			"gl_FragColor = vec4( ToneMap( texel.xyz ), texel.w );",
-			//Gamma 2.0
-			"gl_FragColor.xyz = sqrt( gl_FragColor.xyz );",
 
 		"}"