diff options
author | Graham Linden graham@lindenlab.com <Graham Linden graham@lindenlab.com> | 2018-03-08 16:09:29 +0000 |
---|---|---|
committer | Graham Linden graham@lindenlab.com <Graham Linden graham@lindenlab.com> | 2018-03-08 16:09:29 +0000 |
commit | 087e21082512bce899e435537d7d60a09ef6eaca (patch) | |
tree | ec3476f0a66911fd52b2307eda9e969ce7b09970 /indra/newview/lllegacyatmospherics.h | |
parent | 2eb03ae3ef1d75b0966b80a2cb370f5c4ef8973a (diff) |
Add LLVoSky wrapper for current env sky light direction.
Make LLVo classes use LLVoSky wrappers instead of direct access.
Isolate more legacy haze param usage w/in settings.
Diffstat (limited to 'indra/newview/lllegacyatmospherics.h')
-rw-r--r-- | indra/newview/lllegacyatmospherics.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/indra/newview/lllegacyatmospherics.h b/indra/newview/lllegacyatmospherics.h index 71469a622a..5a5b9c0022 100644 --- a/indra/newview/lllegacyatmospherics.h +++ b/indra/newview/lllegacyatmospherics.h @@ -179,18 +179,12 @@ protected: class LLCubeMap; -// turn on floating point precision -// in vs2003 for this class. Otherwise -// black dots go everywhere from 7:10 - 8:50 -#if LL_MSVC && __MSVC_VER__ < 8 -#pragma optimize("p", on) -#endif - class AtmosphericsVars { public: AtmosphericsVars() : hazeColor(0,0,0) + , hazeColorBelowCloud(0,0,0) , cloudColorSun(0,0,0) , cloudColorAmbient(0,0,0) , cloudDensity(0.0f) @@ -200,6 +194,7 @@ public: } LLColor3 hazeColor; + LLColor3 hazeColorBelowCloud; LLColor3 cloudColorSun; LLColor3 cloudColorAmbient; F32 cloudDensity; @@ -234,6 +229,7 @@ protected: void calcSkyColorWLVert(LLVector3 & Pn, AtmosphericsVars& vars); LLColor3 calcSkyColorWLFrag(LLVector3 & Pn, AtmosphericsVars& vars); + LLColor3 getHazeColor(LLSettingsSky::ptr_t psky, AtmosphericsVars& vars, F32 costheta, F32 cloud_shadow); LLHaze mHaze; F32 mHazeConcentration; |