diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/newview/llvosky.h | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llvosky.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/linden/indra/newview/llvosky.h b/linden/indra/newview/llvosky.h index 70aa3af..124b690 100644 --- a/linden/indra/newview/llvosky.h +++ b/linden/indra/newview/llvosky.h | |||
@@ -207,7 +207,7 @@ protected: | |||
207 | F32 mDiskRadius; | 207 | F32 mDiskRadius; |
208 | BOOL mDraw; // FALSE - do not draw. | 208 | BOOL mDraw; // FALSE - do not draw. |
209 | F32 mHorizonVisibility; // number [0, 1] due to how horizon | 209 | F32 mHorizonVisibility; // number [0, 1] due to how horizon |
210 | F32 mVisibility; // same but due to other objects being in frong. | 210 | F32 mVisibility; // same but due to other objects being in throng. |
211 | BOOL mVisible; | 211 | BOOL mVisible; |
212 | static F32 sInterpVal; | 212 | static F32 sInterpVal; |
213 | LLVector3 mQuadCorner[4]; | 213 | LLVector3 mQuadCorner[4]; |
@@ -217,10 +217,12 @@ protected: | |||
217 | 217 | ||
218 | public: | 218 | public: |
219 | LLHeavenBody(const F32 rad) : | 219 | LLHeavenBody(const F32 rad) : |
220 | mDirectionCached(LLVector3(0,0,0)), mDirection(LLVector3(0,0,0)), | 220 | mDirectionCached(LLVector3(0,0,0)), |
221 | mDiskRadius(rad), mDraw(FALSE), | 221 | mDirection(LLVector3(0,0,0)), |
222 | mHorizonVisibility(1), mVisibility(1) | 222 | mIntensity(0.f), |
223 | 223 | mDiskRadius(rad), mDraw(FALSE), | |
224 | mHorizonVisibility(1.f), mVisibility(1.f), | ||
225 | mVisible(FALSE) | ||
224 | { | 226 | { |
225 | mColor.setToBlack(); | 227 | mColor.setToBlack(); |
226 | mColorCached.setToBlack(); | 228 | mColorCached.setToBlack(); |
@@ -261,7 +263,6 @@ public: | |||
261 | BOOL isVisible() const { return mVisible; } | 263 | BOOL isVisible() const { return mVisible; } |
262 | void setVisible(const BOOL v) { mVisible = v; } | 264 | void setVisible(const BOOL v) { mVisible = v; } |
263 | 265 | ||
264 | |||
265 | const F32& getIntensity() const { return mIntensity; } | 266 | const F32& getIntensity() const { return mIntensity; } |
266 | void setIntensity(const F32 c) { mIntensity = c; } | 267 | void setIntensity(const F32 c) { mIntensity = c; } |
267 | 268 | ||
@@ -311,19 +312,19 @@ LL_FORCE_INLINE LLColor3 calc_air_sca_sea_level() | |||
311 | 312 | ||
312 | const LLColor3 gAirScaSeaLevel = calc_air_sca_sea_level(); | 313 | const LLColor3 gAirScaSeaLevel = calc_air_sca_sea_level(); |
313 | const F32 AIR_SCA_INTENS = color_intens(gAirScaSeaLevel); | 314 | const F32 AIR_SCA_INTENS = color_intens(gAirScaSeaLevel); |
314 | const F32 AIR_SCA_AVG = AIR_SCA_INTENS / 3; | 315 | const F32 AIR_SCA_AVG = AIR_SCA_INTENS / 3.f; |
315 | 316 | ||
316 | class LLHaze | 317 | class LLHaze |
317 | { | 318 | { |
318 | public: | 319 | public: |
319 | LLHaze() : mG(0), mFalloff(1) {mSigSca.setToBlack();} | 320 | LLHaze() : mG(0), mFalloff(1), mAbsCoef(0.f) {mSigSca.setToBlack();} |
320 | LLHaze(const F32 g, const LLColor3& sca, const F32 fo = 2) : | 321 | LLHaze(const F32 g, const LLColor3& sca, const F32 fo = 2.f) : |
321 | mG(g), mSigSca(0.25f/F_PI * sca), mFalloff(fo), mAbsCoef(0) | 322 | mG(g), mSigSca(0.25f/F_PI * sca), mFalloff(fo), mAbsCoef(0.f) |
322 | { | 323 | { |
323 | mAbsCoef = color_intens(mSigSca) / AIR_SCA_INTENS; | 324 | mAbsCoef = color_intens(mSigSca) / AIR_SCA_INTENS; |
324 | } | 325 | } |
325 | 326 | ||
326 | LLHaze(const F32 g, const F32 sca, const F32 fo = 2) : mG(g), | 327 | LLHaze(const F32 g, const F32 sca, const F32 fo = 2.f) : mG(g), |
327 | mSigSca(0.25f/F_PI * LLColor3(sca, sca, sca)), mFalloff(fo) | 328 | mSigSca(0.25f/F_PI * LLColor3(sca, sca, sca)), mFalloff(fo) |
328 | { | 329 | { |
329 | mAbsCoef = 0.01f * sca / AIR_SCA_AVG; | 330 | mAbsCoef = 0.01f * sca / AIR_SCA_AVG; |