summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-08-26 15:19:48 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-08-26 15:19:48 -0700
commit55b071dcd7d9f00dd3f489a333ffc6ad48a0bbc9 (patch)
tree30c739a8afe62891d16383190f7d9fa5587f2b9b /indra
parent8b45dfd477f6aedbf2c835fa276733ce6eba8e9f (diff)
DRTVWR-559: Cleanup: Preserve note about legacy dist_atten magic number
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl b/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl
index 833f5d51b6..68a57d12f0 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl
@@ -52,6 +52,9 @@ float calcLegacyDistanceAttenuation(float distance, float falloff)
{
float dist_atten = 1.0 - clamp((distance + falloff)/(1.0 + falloff), 0.0, 1.0);
dist_atten *= dist_atten;
+
+ // Tweak falloff slightly to match pre-EEP attenuation
+ // NOTE: this magic number also shows up in a great many other places, search for dist_atten *= to audit
dist_atten *= 2.0;
return dist_atten;
}