summaryrefslogtreecommitdiff
path: root/indra/llinventory/llsettingssky.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-03-26 13:37:07 -0700
committerGraham Linden <graham@lindenlab.com>2019-03-26 13:37:07 -0700
commit9dee4149ae6f33e2f82b8986b041df311f0cbe88 (patch)
tree9ae5d119a4a32fabb81d4647bc77bd12b1f66b76 /indra/llinventory/llsettingssky.cpp
parent872b36488a7f3b1d9095e129e3973fefa11e85ba (diff)
Remove remaining 0.5/1.5 fudge factors on lighting radius/falloff params.
Make moonlight darker and slightly bluish for scotopic feel when moon is primary.
Diffstat (limited to 'indra/llinventory/llsettingssky.cpp')
-rw-r--r--indra/llinventory/llsettingssky.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp
index 0e597aabb0..a7b87c4d96 100644
--- a/indra/llinventory/llsettingssky.cpp
+++ b/indra/llinventory/llsettingssky.cpp
@@ -1295,8 +1295,9 @@ void LLSettingsSky::calculateLightSettings() const
mSunDiffuse = gammaCorrect(componentMult(sunlight, light_transmittance));
mSunAmbient = gammaCorrect(componentMult(tmpAmbient, light_transmittance) * 0.5);
- mMoonDiffuse = gammaCorrect(componentMult(LLColor3::white, light_transmittance) * 0.5f);
- mMoonAmbient = gammaCorrect(componentMult(LLColor3::white, light_transmittance) * 0.25f);
+ LLColor3 moonlight(0.75, 0.75, 0.92);
+ mMoonDiffuse = gammaCorrect(componentMult(moonlight, light_transmittance) * 0.25f);
+ mMoonAmbient = gammaCorrect(componentMult(moonlight, light_transmittance) * 0.125f);
mTotalAmbient = mSunAmbient;
}