summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-07-27 10:20:22 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-07-27 10:20:22 -0700
commitc2ce98e930175b584a41946821222cc849621336 (patch)
tree0f326179e6850907e87d08de9d59940fbf9c1091
parent6c40289db0801d1082e0d6f7392a187057d8903b (diff)
SL-17762: PBR: Fix falloff
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl2
1 files changed, 1 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 70a7f67864..ad3a93128d 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/deferredUtil.glsl
@@ -290,7 +290,7 @@ vec2 getGGX( vec2 brdfPoint )
float getLightAttenuationPointSpot(float range, float distance)
{
#if 1
- return range;
+ return distance;
#else
float range2 = pow(range, 2.0);