diff --git a/examples/js/shaders/GammaCorrectionShader.js b/examples/js/shaders/GammaCorrectionShader.js index 6b84e0f910a86d0c23f19afa5e3147f9bb43c154..6e878c6f4099bf507ece6810d47dd7a4829759a2 100644 --- a/examples/js/shaders/GammaCorrectionShader.js +++ b/examples/js/shaders/GammaCorrectionShader.js @@ -36,7 +36,7 @@ THREE.GammaCorrectionShader = { " vec4 tex = texture2D( tDiffuse, vec2( vUv.x, vUv.y ) );", - " gl_FragColor = LinearToGamma( tex, float( GAMMA_FACTOR ) );", + " gl_FragColor = LinearTosRGB( tex );", // optional: LinearToGamma( tex, float( GAMMA_FACTOR ) ); "}" diff --git a/examples/jsm/shaders/GammaCorrectionShader.js b/examples/jsm/shaders/GammaCorrectionShader.js index 4cf85b6929dec167fa1eb05313adef1858658546..1764bde595bd34fd984e11ec29a08ce013fbb4bb 100644 --- a/examples/jsm/shaders/GammaCorrectionShader.js +++ b/examples/jsm/shaders/GammaCorrectionShader.js @@ -38,7 +38,7 @@ var GammaCorrectionShader = { " vec4 tex = texture2D( tDiffuse, vec2( vUv.x, vUv.y ) );", - " gl_FragColor = LinearToGamma( tex, float( GAMMA_FACTOR ) );", + " gl_FragColor = LinearTosRGB( tex );", // optional: LinearToGamma( tex, float( GAMMA_FACTOR ) ); "}"