summaryrefslogtreecommitdiff
path: root/indra/llinventory
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-03-26 08:21:53 -0700
committerGraham Linden <graham@lindenlab.com>2019-03-26 08:21:53 -0700
commit446afe2d1a081a0e10a34749bbe1e4475075dae0 (patch)
treed8d54398d764eaa59c564896c8ff74e71e1f4f63 /indra/llinventory
parentd99e2e119f08370b2003bad23617b7fdd435d19e (diff)
Make whether the sun or moon is primary part of llrender light state so we can set uniforms for shaders along with other light params.
Fix atten calcs to not use abs val.
Diffstat (limited to 'indra/llinventory')
-rw-r--r--indra/llinventory/llsettingssky.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp
index f1bea326c1..0e597aabb0 100644
--- a/indra/llinventory/llsettingssky.cpp
+++ b/indra/llinventory/llsettingssky.cpp
@@ -1281,7 +1281,7 @@ void LLSettingsSky::calculateLightSettings() const
// and vary_sunlight will work properly with moon light
F32 lighty = lightnorm[1];
- if(fabs(lighty) > 0.001f)
+ if(lighty > 0.001f)
{
lighty = 1.f / lighty;
}