diff options
author | Graham Linden <graham@lindenlab.com> | 2019-04-30 10:04:20 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-04-30 10:04:20 -0700 |
commit | bfce96d684d5d056061ce16a36daba9a2bd0aa9d (patch) | |
tree | 440c0f2cbacf246d3759fd94472e028f60b7011b /indra/newview/app_settings/shaders/class3/lighting | |
parent | 6b925711948f69b5361efa3f674b8c9e1b9f6bb4 (diff) |
SL-10856
Remove ambient clamp to keep shadows dark.
Partial fix for class 3 ambient term being wrong.
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/lighting')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/lighting/lightV.glsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class3/lighting/lightV.glsl b/indra/newview/app_settings/shaders/class3/lighting/lightV.glsl index 1ac0ad8948..f5428077fa 100644 --- a/indra/newview/app_settings/shaders/class3/lighting/lightV.glsl +++ b/indra/newview/app_settings/shaders/class3/lighting/lightV.glsl @@ -31,8 +31,8 @@ vec4 sumLights(vec3 pos, vec3 norm, vec4 color); vec4 calcLighting(vec3 pos, vec3 norm, vec4 color) { - vec4 c = sumLights(pos, norm, color); - c.rgb += atmosAmbient() * color.rgb; - return c * 2.0; + vec4 c = sumLights(pos, norm, color) * 2.0; + c.rgb += atmosAmbient() * color.rgb * 0.5; + return c; } |