diff options
author | Graham Linden <graham@lindenlab.com> | 2019-05-21 16:00:45 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-05-21 16:00:45 -0700 |
commit | e9dbee00262a437e4b3f971b37ea636e92032133 (patch) | |
tree | 57f79641ee532f3f80b0fbd89d3a1f42de398829 /indra/newview/app_settings/shaders/class2/deferred/skyF.glsl | |
parent | 78e62fe0f16d95a2afb6c4205b121db189c297b9 (diff) |
SL-11238
Fix ambient light inputs to the renderer.
Fix 3rd sky shader w/ mistaken density mod conversion.
Make ambient clamp apply to all modes.
Tune ALM ambient clamp to match non-ALM.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred/skyF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/deferred/skyF.glsl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/skyF.glsl b/indra/newview/app_settings/shaders/class2/deferred/skyF.glsl index eb95890e08..dca2862b5a 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/skyF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/skyF.glsl @@ -88,6 +88,7 @@ vec3 halo22(float d) /// Soft clips the light with a gamma correction vec3 scaleSoftClip(vec3 light); +vec3 srgb_to_linear(vec3 c); void main() { @@ -194,10 +195,12 @@ void main() color.rgb += halo_22; - color *= 2.; + color.rgb *= 2.; + color.rgb = scaleSoftClip(color.rgb); + color.rgb = srgb_to_linear(color.rgb); /// Gamma correct for WL (soft clip effect). - frag_data[0] = vec4(scaleSoftClip(color.rgb), 1.0); + frag_data[0] = vec4(color.rgb, 1.0); frag_data[1] = vec4(0.0,0.0,0.0,0.0); frag_data[2] = vec4(0.5,0.5,0.0,1.0); //1.0 in norm.w masks off fog } |