summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2019-08-22 21:48:20 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2019-08-22 21:48:20 +0300
commit413884dfc5b0a0eb38a025685e0e3da5a9f1efce (patch)
tree90886020f1756a560cfe2a60700efdd03d85370c /indra
parentbe74485334267339dee14018aa82f84cc34b0ecb (diff)
SL-11776 Fixed moon's comparison condition
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvosky.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp
index 408da88c3f..37b685f731 100644
--- a/indra/newview/llvosky.cpp
+++ b/indra/newview/llvosky.cpp
@@ -736,7 +736,9 @@ bool LLVOSky::updateSky()
LLVector3 direction = mSun.getDirection();
direction.normalize();
const F32 dot_sun = direction * mLastSunLightingDirection;
- const F32 dot_moon = direction * mLastMoonLightingDirection;
+ LLVector3 moon_direction = mMoon.getDirection();
+ moon_direction.normalize();
+ const F32 dot_moon = moon_direction * mLastMoonLightingDirection;
LLColor3 delta_color;
delta_color.setVec(mLastTotalAmbient.mV[0] - total_ambient.mV[0],