From 55b071dcd7d9f00dd3f489a333ffc6ad48a0bbc9 Mon Sep 17 00:00:00 2001 From: Ptolemy Date: Fri, 26 Aug 2022 15:19:48 -0700 Subject: DRTVWR-559: Cleanup: Preserve note about legacy dist_atten magic number --- indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra') 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; } -- cgit v1.2.3