소스 검색

#8445 Adjust Define in GammaCorrectionShader

Mugen87 9 년 전
부모
커밋
2225c9e6e8
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      examples/js/shaders/GammaCorrectionShader.js

+ 1 - 3
examples/js/shaders/GammaCorrectionShader.js

@@ -28,8 +28,6 @@ THREE.GammaCorrectionShader = {
 
 	fragmentShader: [
 
-		"#define GAMMA_FACTOR 2",
-
 		"uniform sampler2D tDiffuse;",
 
 		"varying vec2 vUv;",
@@ -38,7 +36,7 @@ THREE.GammaCorrectionShader = {
 
 			"vec4 tex = texture2D( tDiffuse, vec2( vUv.x, vUv.y ) );",
 
-			"gl_FragColor = LinearToGamma( tex, 2.0 );",
+			"gl_FragColor = LinearToGamma( tex, float( GAMMA_FACTOR ) );",
 
 		"}"