summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/deferred
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2013-07-24 11:21:40 -0700
committerGraham Linden <graham@lindenlab.com>2013-07-24 11:21:40 -0700
commitd6b4124fb96768aad8840490efa31d9b800cb3ea (patch)
tree68297c27254c9d002eadbd841b90cad6aa639cea /indra/newview/app_settings/shaders/class2/deferred
parent7e2c4cd91df9f8d696d77e21e58ba9937977ab3d (diff)
NORSPEC-311 WIP move to per-pixel alpha lighting and make spot/point calcs match more closely
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred')
-rwxr-xr-xindra/newview/app_settings/shaders/class2/deferred/multiSpotLightF.glsl2
-rwxr-xr-xindra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl2
2 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/multiSpotLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/multiSpotLightF.glsl
index 0aac9d77de..4af0970726 100755
--- a/indra/newview/app_settings/shaders/class2/deferred/multiSpotLightF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/multiSpotLightF.glsl
@@ -207,7 +207,7 @@ void main()
proj_tc.xyz /= proj_tc.w;
- float fa = falloff+1.0;
+ float fa = falloff;
float dist_atten = min(1.0-(dist-1.0*(1.0-fa))/fa, 1.0);
dist_atten *= dist_atten;
dist_atten *= 2.0;
diff --git a/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl
index 17c0d26f6d..544a0a6730 100755
--- a/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/spotLightF.glsl
@@ -204,7 +204,7 @@ void main()
proj_tc.xyz /= proj_tc.w;
- float fa = falloff+1.0;
+ float fa = falloff;
float dist_atten = min(1.0-(dist-1.0*(1.0-fa))/fa, 1.0);
dist_atten *= dist_atten;
dist_atten *= 2.0;