summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-10-05 00:49:03 -0500
committerDave Parks <davep@lindenlab.com>2011-10-05 00:49:03 -0500
commit210120f9068e8f5696abab55f9fced307e021d22 (patch)
tree9059ff6d6c4092a1d990f5161f8fdb871b9cecd6 /indra/newview/app_settings
parent425b10601da5f0e0df265489d8d427afbd506332 (diff)
SH-2240 Fix for projectors being double sided when shadows disabled
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl
index d3984276ef..2196d14895 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl
@@ -149,7 +149,7 @@ void main()
vec4 proj_tc = (proj_mat * vec4(pos.xyz, 1.0));
if (proj_tc.z < 0.0)
{
- //discard;
+ discard;
}
proj_tc.xyz /= proj_tc.w;
@@ -158,7 +158,7 @@ void main()
float dist_atten = min(1.0-(dist2-1.0*(1.0-fa))/fa, 1.0);
if (dist_atten <= 0.0)
{
- //discard;
+ discard;
}
lv = proj_origin-pos.xyz;