WestLangley 5 년 전
부모
커밋
5e1e9c7e73
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      examples/js/shaders/GammaCorrectionShader.js
  2. 1 1
      examples/jsm/shaders/GammaCorrectionShader.js

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

@@ -34,7 +34,7 @@ THREE.GammaCorrectionShader = {
 
 		"void main() {",
 
-		"	vec4 tex = texture2D( tDiffuse, vec2( vUv.x, vUv.y ) );",
+		"	vec4 tex = texture2D( tDiffuse, vUv );",
 
 		"	gl_FragColor = LinearTosRGB( tex );", // optional: LinearToGamma( tex, float( GAMMA_FACTOR ) );
 

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

@@ -36,7 +36,7 @@ var GammaCorrectionShader = {
 
 		"void main() {",
 
-		"	vec4 tex = texture2D( tDiffuse, vec2( vUv.x, vUv.y ) );",
+		"	vec4 tex = texture2D( tDiffuse, vUv );",
 
 		"	gl_FragColor = LinearTosRGB( tex );", // optional: LinearToGamma( tex, float( GAMMA_FACTOR ) );