summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred
diff options
context:
space:
mode:
authorDave Houlton <euclid@lindenlab.com>2019-12-19 18:04:32 -0700
committerDave Houlton <euclid@lindenlab.com>2019-12-19 18:04:32 -0700
commitb3e11083cc31abfa7cebf2c3acc6aeebfc1f4205 (patch)
tree1aeaa4ab68416ff7c653616199e438b83e5c50bd /indra/newview/app_settings/shaders/class1/deferred
parentf61a5c4642db8af5d80eacc0ca7a2062bf08e4f0 (diff)
SL-11606 fix to match EEP light falloff vs release
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/multiPointLightF.glsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/multiPointLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/multiPointLightF.glsl
index 3607f5a086..dcc3750a8f 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/multiPointLightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/multiPointLightF.glsl
@@ -100,7 +100,9 @@ void main()
float fa = light_col[i].a+1.0;
float dist_atten = clamp(1.0-(dist-1.0*(1.0-fa))/fa, 0.0, 1.0);
dist_atten *= dist_atten;
- dist_atten *= 2.0;
+
+ // Tweak falloff slightly to match pre-EEP attenuation
+ dist_atten *= 2.2;
dist_atten *= noise;