Reduce tone mapping strength
This commit is contained in:
parent
abd1063cdf
commit
745f57930b
@ -29,7 +29,7 @@ const float fogShadingParameter = 1.0 / ( 1.0 - fogStart);
|
||||
#if ENABLE_TONE_MAPPING
|
||||
|
||||
/* Hable's UC2 Tone mapping parameters
|
||||
A = 0.22;
|
||||
A = 0.12;
|
||||
B = 0.30;
|
||||
C = 0.10;
|
||||
D = 0.20;
|
||||
@ -41,7 +41,7 @@ const float fogShadingParameter = 1.0 / ( 1.0 - fogStart);
|
||||
|
||||
vec3 uncharted2Tonemap(vec3 x)
|
||||
{
|
||||
return ((x * (0.22 * x + 0.03) + 0.002) / (x * (0.22 * x + 0.3) + 0.06)) - 0.03333;
|
||||
return ((x * (0.12 * x + 0.03) + 0.002) / (x * (0.12 * x + 0.3) + 0.06)) - 0.03333;
|
||||
}
|
||||
|
||||
vec4 applyToneMapping(vec4 color)
|
||||
@ -52,7 +52,7 @@ vec4 applyToneMapping(vec4 color)
|
||||
color.rgb = uncharted2Tonemap(exposureBias * color.rgb);
|
||||
// Precalculated white_scale from
|
||||
//vec3 whiteScale = 1.0 / uncharted2Tonemap(vec3(W));
|
||||
vec3 whiteScale = vec3(1.036015346);
|
||||
vec3 whiteScale = vec3(1.25);
|
||||
color.rgb *= whiteScale;
|
||||
return vec4(pow(color.rgb, vec3(1.0 / gamma)), color.a);
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ const float fogShadingParameter = 1.0 / (1.0 - fogStart);
|
||||
#if ENABLE_TONE_MAPPING
|
||||
|
||||
/* Hable's UC2 Tone mapping parameters
|
||||
A = 0.22;
|
||||
A = 0.12;
|
||||
B = 0.30;
|
||||
C = 0.10;
|
||||
D = 0.20;
|
||||
@ -38,7 +38,7 @@ const float fogShadingParameter = 1.0 / (1.0 - fogStart);
|
||||
|
||||
vec3 uncharted2Tonemap(vec3 x)
|
||||
{
|
||||
return ((x * (0.22 * x + 0.03) + 0.002) / (x * (0.22 * x + 0.3) + 0.06)) - 0.03333;
|
||||
return ((x * (0.12 * x + 0.03) + 0.002) / (x * (0.12 * x + 0.3) + 0.06)) - 0.03333;
|
||||
}
|
||||
|
||||
vec4 applyToneMapping(vec4 color)
|
||||
@ -49,7 +49,7 @@ vec4 applyToneMapping(vec4 color)
|
||||
color.rgb = uncharted2Tonemap(exposureBias * color.rgb);
|
||||
// Precalculated white_scale from
|
||||
//vec3 whiteScale = 1.0 / uncharted2Tonemap(vec3(W));
|
||||
vec3 whiteScale = vec3(1.036015346);
|
||||
vec3 whiteScale = vec3(1.25);
|
||||
color.rgb *= whiteScale;
|
||||
return vec4(pow(color.rgb, vec3(1.0 / gamma)), color.a);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user