summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1
diff options
context:
space:
mode:
authorHoward Stearns <howard.stearns@gmail.com>2022-08-29 10:17:09 -0700
committerHoward Stearns <howard.stearns@gmail.com>2022-08-29 10:17:09 -0700
commit6c4ff3f9c8dc51f5fc18a5ef34fed7a4063d37fa (patch)
tree40c2cc9157864c4bdd0b3da534b5753f0b2d9cb9 /indra/newview/app_settings/shaders/class1
parent1b5c13fd446dbf9193aca9baa66f62edb1393875 (diff)
parentd6e8a6c98aa426e8f1ee92cd7bc65703cf0a22aa (diff)
Merge branch 'DRTVWR-559' of bitbucket.org:lindenlab/viewer into SL-17967
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl b/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl
index c4d1e7d1a7..449cbeaa28 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;
}
@@ -303,7 +306,7 @@ vec2 getScreenXY(vec4 clip)
// Color utils
-vec3 colorized_dot(float x)
+vec3 colorize_dot(float x)
{
if (x > 0.0) return vec3( 0, x, 0 );
if (x < 0.0) return vec3(-x, 0, 0 );