summaryrefslogtreecommitdiff
path: root/indra/llrender/llrender.h
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-03-26 08:21:53 -0700
committerGraham Linden <graham@lindenlab.com>2019-03-26 08:21:53 -0700
commit446afe2d1a081a0e10a34749bbe1e4475075dae0 (patch)
treed8d54398d764eaa59c564896c8ff74e71e1f4f63 /indra/llrender/llrender.h
parentd99e2e119f08370b2003bad23617b7fdd435d19e (diff)
Make whether the sun or moon is primary part of llrender light state so we can set uniforms for shaders along with other light params.
Fix atten calcs to not use abs val.
Diffstat (limited to 'indra/llrender/llrender.h')
-rw-r--r--indra/llrender/llrender.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llrender/llrender.h b/indra/llrender/llrender.h
index 3f2d5eb35d..ad9cd11283 100644
--- a/indra/llrender/llrender.h
+++ b/indra/llrender/llrender.h
@@ -239,6 +239,7 @@ public:
void setSpotExponent(const F32& exponent);
void setSpotCutoff(const F32& cutoff);
void setSpotDirection(const LLVector3& direction);
+ void setSunPrimary(bool v);
protected:
friend class LLRender;
@@ -247,6 +248,7 @@ protected:
bool mEnabled;
LLColor4 mDiffuse;
LLColor4 mDiffuseB;
+ bool mSunIsPrimary;
LLColor4 mAmbient;
LLColor4 mSpecular;
LLVector4 mPosition;