summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1
diff options
context:
space:
mode:
authorGeenz <geenz@geenzo.com>2014-08-07 17:27:34 -0400
committerGeenz <geenz@geenzo.com>2014-08-07 17:27:34 -0400
commit703be164cf4205117fa0e1adc9316fb77645ce25 (patch)
treecfde21b197327228e959b35bf4bd6555272b7d61 /indra/newview/app_settings/shaders/class1
parent2ffa387560d26acdd90a32321f593036fa36c294 (diff)
Code cleanup for BUG-6898
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rwxr-xr-xindra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl8
-rwxr-xr-xindra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl7
2 files changed, 8 insertions, 7 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl
index 63ad6fa7c7..62acbbf36b 100755
--- a/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/multiSpotLightF.glsl
@@ -311,12 +311,14 @@ void main()
vec3 pfinal = pos + ref * dot(pdelta, proj_n)/ds;
vec4 stc = (proj_mat * vec4(pfinal.xyz, 1.0));
- stc /= stc.w;
+
if (stc.z > 0.0)
{
- float fatten = clamp(spec.a*spec.a+spec.a*0.25, 0.25, 1.0);
+ stc /= stc.w;
+
+ //float fatten = clamp(spec.a*spec.a+spec.a*0.25, 0.25, 1.0);
- stc.xy = (stc.xy - vec2(0.5)) + vec2(0.5);
+ //stc.xy = (stc.xy - vec2(0.25)) * fatten + vec2(0.5);
if (stc.x < 1.0 &&
stc.y < 1.0 &&
diff --git a/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl
index 6d282115dd..10b47291e3 100755
--- a/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/spotLightF.glsl
@@ -322,12 +322,11 @@ void main()
if (stc.z > 0.0)
{
- stc.xy /= stc.w;
+ stc /= stc.w;
- float fatten = clamp(spec.a*spec.a+spec.a*0.25, 0.25, 1.0);
+ //float fatten = clamp(spec.a*spec.a+spec.a*0.25, 0.25, 1.0);
- //stc.xy = (stc.xy - vec2(0.5)) * fatten + vec2(0.5);
- stc.xy = (stc.xy - vec2(0.5)) + vec2(0.5);
+ //stc.xy = (stc.xy - vec2(0.25)) * fatten + vec2(0.5);
if (stc.x < 1.0 &&
stc.y < 1.0 &&