From 210120f9068e8f5696abab55f9fced307e021d22 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Wed, 5 Oct 2011 00:49:03 -0500 Subject: SH-2240 Fix for projectors being double sided when shadows disabled --- .../newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview/app_settings') 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; -- cgit v1.2.3