diff options
author | Dave Parks <davep@lindenlab.com> | 2022-09-29 19:24:08 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-09-29 19:24:08 -0500 |
commit | d001c52c346d957375afc36bd83550a5702d4727 (patch) | |
tree | 084bef0b3ba8dd6f81283fad71a9da148d1ec892 /indra | |
parent | 6f2acc8e60da1699265c38acc5bd0d2871d0c9f7 (diff) |
SL-18132 Fix for errant shadow when sun shadows are disabled.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index 7635897db1..3e44e87f1e 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -119,10 +119,16 @@ void main() #if defined(HAS_SUN_SHADOW) || defined(HAS_SSAO) vec2 scol_ambocc = texture2DRect(lightMap, vary_fragcoord.xy).rg; +#endif + +#if defined(HAS_SUN_SHADOW) float scol = max(scol_ambocc.r, diffuse.a); - float ambocc = scol_ambocc.g; #else float scol = 1.0; +#endif +#if defined(HAS_SSAO) + float ambocc = scol_ambocc.g; +#else float ambocc = 1.0; #endif |