diff options
author | Graham Linden <graham@lindenlab.com> | 2019-04-23 13:12:16 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-04-23 13:12:16 -0700 |
commit | a685e024a62751289ccfa41c962b039d1de748bd (patch) | |
tree | 1664379041cf03014e7becf1dd22c81e9f7ee0f7 /indra/newview/app_settings/shaders/class2 | |
parent | 48f66434b84438b1d7146af4e6ba9d2c681153b6 (diff) |
SL-10901
Bias shadow sampling and allow control of how dark shadows are (clamped ambient).
Diffstat (limited to 'indra/newview/app_settings/shaders/class2')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl index f1c06fcc8a..dd70790fc3 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl @@ -71,7 +71,7 @@ vec3 atmosFragLighting(vec3 l, vec3 additive, vec3 atten); vec3 scaleSoftClipFrag(vec3 l); void calcAtmosphericVars(vec3 inPositionEye, float ambFactor, out vec3 sunlit, out vec3 amblit, out vec3 additive, out vec3 atten); - +float getAmbientClamp(); vec3 atmosTransportFrag(vec3 light, vec3 additive, vec3 atten); vec4 getPositionWithDepth(vec2 pos_screen, float depth); @@ -124,7 +124,7 @@ void main() float ambient = da; ambient *= 0.5; ambient *= ambient; - ambient = max(0.66, ambient); + ambient = max(getAmbientClamp(), ambient); ambient = 1.0 - ambient; vec3 sun_contrib = scol * final_da * sunlit; |