diff options
author | Graham Linden <graham@lindenlab.com> | 2018-06-08 22:22:20 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-06-08 22:22:20 +0100 |
commit | 507c4921826e73635f6ae31087ab0e6cd1280f43 (patch) | |
tree | 1f6a5aba26ba21f43ae79b3eddd1f8d5a458c481 /indra/newview/lltoolgun.cpp | |
parent | 363f7f84a149c0bc4fe21df80aead821f02a7ff0 (diff) |
Add specific shader for the moon to allow different rendering at day vs night.
Add MouseMoon positioning ala MouseSun debug setting and accessors to use it.
Diffstat (limited to 'indra/newview/lltoolgun.cpp')
-rw-r--r-- | indra/newview/lltoolgun.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/lltoolgun.cpp b/indra/newview/lltoolgun.cpp index fb96804bfa..ee757f2566 100644 --- a/indra/newview/lltoolgun.cpp +++ b/indra/newview/lltoolgun.cpp @@ -108,7 +108,14 @@ BOOL LLToolGun::handleHover(S32 x, S32 y, MASK mask) if (gSavedSettings.getBOOL("MouseSun")) { LLVector3 sunpos = LLViewerCamera::getInstance()->getAtAxis(); - gSky.setSunAndMoonDirectionsCFR(sunpos, -sunpos); + gSky.setSunDirectionCFR(sunpos); + gSavedSettings.setVector3("SkySunDefaultPosition", LLViewerCamera::getInstance()->getAtAxis()); + } + + if (gSavedSettings.getBOOL("MouseMoon")) + { + LLVector3 moonpos = LLViewerCamera::getInstance()->getAtAxis(); + gSky.setMoonDirectionCFR(moonpos); gSavedSettings.setVector3("SkySunDefaultPosition", LLViewerCamera::getInstance()->getAtAxis()); } |