summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2010-05-11 00:57:30 -0500
committerDave Parks <davep@lindenlab.com>2010-05-11 00:57:30 -0500
commit45aa68fde1fd8c89fa5e7766e1f50b14a577638f (patch)
tree85eab445ccabcd290fb1157ea48c0df8bff7eb26 /indra/newview
parent8d6fb2dbc6ad9566903f6cd2e539d0abb62d8391 (diff)
EXT-7225 Fix for busted projector shadows under certain settings.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/app_settings/settings.xml2
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/sunLightF.glsl3
2 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index a2b88d17d4..623f0f3b01 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -6615,7 +6615,7 @@
<key>Type</key>
<string>F32</string>
<key>Value</key>
- <real>0.01</real>
+ <real>-0.01</real>
</map>
<key>RenderShadowResolutionScale</key>
diff --git a/indra/newview/app_settings/shaders/class2/deferred/sunLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/sunLightF.glsl
index 46db3c990c..413835515a 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/sunLightF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/sunLightF.glsl
@@ -77,6 +77,7 @@ float pcfShadow(sampler2DRectShadow shadowMap, vec4 stc, float scl)
float pcfShadow(sampler2DShadow shadowMap, vec4 stc, float scl)
{
+ stc.z += spot_shadow_offset;
stc.xyz /= stc.w;
stc.z += spot_shadow_bias*scl;
@@ -181,7 +182,7 @@ void main()
gl_FragColor[0] = shadow;
gl_FragColor[1] = 1.0;
- spos.xyz = shadow_pos+offset*spot_shadow_offset;
+ spos = vec4(shadow_pos, 1.0);
//spotlight shadow 1
vec4 lpos = shadow_matrix[4]*spos;