summaryrefslogtreecommitdiff
path: root/indra/newview/llsky.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-08-22 23:02:16 +0100
committerGraham Linden <graham@lindenlab.com>2018-08-22 23:02:16 +0100
commitf45edabe478eb2e5ed899377f541875cbd566977 (patch)
tree35312453eaeb9f327388464e4741c392408f07ef /indra/newview/llsky.cpp
parent3b9e6636e5e0ab9d29d4fa97a7babe024de0af82 (diff)
MAINT-9026 hook up sun/moon scale to settingsvo and render code
Diffstat (limited to 'indra/newview/llsky.cpp')
-rw-r--r--indra/newview/llsky.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llsky.cpp b/indra/newview/llsky.cpp
index 9c7fc225a0..0740878901 100644
--- a/indra/newview/llsky.cpp
+++ b/indra/newview/llsky.cpp
@@ -129,6 +129,22 @@ void LLSky::resetVertexBuffers()
}
}
+void LLSky::setSunScale(F32 sun_scale)
+{
+ if(mVOSkyp.notNull())
+ {
+ mVOSkyp->setSunScale(sun_scale);
+ }
+}
+
+void LLSky::setMoonScale(F32 moon_scale)
+{
+ if(mVOSkyp.notNull())
+ {
+ mVOSkyp->setMoonScale(moon_scale);
+ }
+}
+
void LLSky::setSunTextures(const LLUUID& sun_texture, const LLUUID& sun_texture_next)
{
if(mVOSkyp.notNull()) {