summaryrefslogtreecommitdiff
path: root/indra/newview/llvosky.h
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/llvosky.h
parent3b9e6636e5e0ab9d29d4fa97a7babe024de0af82 (diff)
MAINT-9026 hook up sun/moon scale to settingsvo and render code
Diffstat (limited to 'indra/newview/llvosky.h')
-rw-r--r--indra/newview/llvosky.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llvosky.h b/indra/newview/llvosky.h
index d8039b7f80..4943c48f7c 100644
--- a/indra/newview/llvosky.h
+++ b/indra/newview/llvosky.h
@@ -236,7 +236,7 @@ public:
void setSunDirectionCFR(const LLVector3 &sun_direction);
void setMoonDirectionCFR(const LLVector3 &moon_direction);
- bool updateHeavenlyBodyGeometry(LLDrawable *drawable, const S32 side, LLHeavenBody& hb, const LLVector3 &up, const LLVector3 &right);
+ bool updateHeavenlyBodyGeometry(LLDrawable *drawable, F32 scale, const S32 side, LLHeavenBody& hb, const LLVector3 &up, const LLVector3 &right);
void updateReflectionGeometry(LLDrawable *drawable, F32 H, const LLHeavenBody& HB);
F32 getWorldScale() const { return mWorldScale; }
@@ -278,6 +278,9 @@ public:
void setCloudNoiseTextures(const LLUUID& cloud_noise_texture, const LLUUID& cloud_noise_texture_next);
void setBloomTextures(const LLUUID& bloom_texture, const LLUUID& bloom_texture_next);
+ void setSunScale(F32 sun_scale);
+ void setMoonScale(F32 sun_scale);
+
void forceSkyUpdate(void) { mForceUpdate = TRUE; }
public:
@@ -297,6 +300,9 @@ protected:
LLPointer<LLViewerFetchedTexture> mCloudNoiseTexturep[2];
LLPointer<LLViewerFetchedTexture> mBloomTexturep[2];
+ F32 mSunScale = 1.0f;
+ F32 mMoonScale = 1.0f;
+
static S32 sResolution;
static S32 sTileResX;
static S32 sTileResY;