提交 a72e0ba0 编写于 作者: W WestLangley

Use sRGB transfer function

上级 205e345b
......@@ -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 ) );
"}"
......
......@@ -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 ) );
"}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册