diff options
author | Graham Linden <graham@lindenlab.com> | 2018-10-19 22:58:01 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-10-19 22:58:01 +0100 |
commit | c06bd45df96c117172b83e7f8b2a8e03c5fd88e5 (patch) | |
tree | d169e36002062d6de1219fb0cd0969bbe631d65c /indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl | |
parent | 75858d9f3ff1f6adae4e6b4c4726eecfc57d0e11 (diff) |
SL-9928
De-hackify WL additive to get better match between ALM and non-ALM rendering
without bringing back SL-1491 lens flare bug.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl b/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl index 770f9a5f4f..20c4d82ded 100644 --- a/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl +++ b/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl @@ -149,6 +149,7 @@ void calcFragAtmospherics(vec3 inPositionEye, float ambFactor, out vec3 sunlit, //brightness of surface both sunlight and ambient sunlit = vec3(sunlight * .5); amblit = vec3(tmpAmbient * .25); - additive *= vec3(1.0 - temp1); + additive = normalize(additive); + additive *= vec3(1.0 - exp(-temp2.z * distance_multiplier)) * 0.5; } |