summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-02-08 13:59:13 -0800
committerGraham Linden <graham@lindenlab.com>2019-02-08 13:59:13 -0800
commit1bbf62652c0b3cfdb2046ef5a3d632f56160bb8d (patch)
treefcdc7b5e98043cac834c8612f138234ce996fec2 /indra
parent290c2bda553af5cc2dafdfb6fc1b8fd9823c826b (diff)
SL-10457
Make area beyond far split of directional light unshadowed again.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/shadowUtil.glsl7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/shadowUtil.glsl b/indra/newview/app_settings/shaders/class1/deferred/shadowUtil.glsl
index e762871ba1..d04ac6851a 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/shadowUtil.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/shadowUtil.glsl
@@ -151,13 +151,16 @@ float sampleDirectionalShadow(vec3 pos, vec3 norm, vec2 pos_screen)
shadow /= weight;
}
-
+ else
+ {
+ return 1.0f; // lit beyond the far split...
+ }
return shadow;
}
float sampleSpotShadow(vec3 pos, vec3 norm, int index, vec2 pos_screen)
{
- float shadow = 0.0f;
+ float shadow = 1.0f;
pos += norm * spot_shadow_offset;
vec4 spos = vec4(pos,1.0);