diff options
author | Graham Linden <graham@lindenlab.com> | 2019-01-30 08:37:07 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-01-30 08:37:07 -0800 |
commit | acbc7f4cddd6ad999c2bc7690c10b85a414a8102 (patch) | |
tree | 8af15ec5456494dc71d9eba0927ca4d5abb8aeac /indra/newview/llvowlsky.cpp | |
parent | 38f69533780943b432edaac212475bea5fd013b6 (diff) |
SL-10415, SL-10434
Further tweaking of directional shadow sampling to balance between peter-panning and shadow acne.
Move stars to just this side of the sky some to reduce parallax.
Remove decodeNormF and uses of decode_normal in favor of unified use of getNorm
(try to help the Intel HD x000 compiler learn to link correctly).
Diffstat (limited to 'indra/newview/llvowlsky.cpp')
-rw-r--r-- | indra/newview/llvowlsky.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llvowlsky.cpp b/indra/newview/llvowlsky.cpp index 570273e62c..08bb2d2b2b 100644 --- a/indra/newview/llvowlsky.cpp +++ b/indra/newview/llvowlsky.cpp @@ -36,10 +36,8 @@ #include "llenvironment.h" #include "llsettingssky.h" -const F32 LLVOWLSky::DISTANCE_TO_STARS = (HORIZON_DIST - 10.f) * 0.8f; - -const U32 LLVOWLSky::MIN_SKY_DETAIL = 8; -const U32 LLVOWLSky::MAX_SKY_DETAIL = 180; +static const U32 MIN_SKY_DETAIL = 8; +static const U32 MAX_SKY_DETAIL = 180; inline U32 LLVOWLSky::getNumStacks(void) { @@ -326,6 +324,8 @@ void LLVOWLSky::drawDome(void) void LLVOWLSky::initStars() { + const F32 DISTANCE_TO_STARS = LLEnvironment::instance().getCurrentSky()->getDomeRadius(); + // Initialize star map mStarVertices.resize(getStarsNumVerts()); mStarColors.resize(getStarsNumVerts()); @@ -528,7 +528,7 @@ BOOL LLVOWLSky::updateStarGeometry(LLDrawable *drawable) LLVector3 left = at%LLVector3(0,0,1); LLVector3 up = at%left; - F32 sc = 0.8f + ll_frand()*2.5f; + F32 sc = 16.0f + (ll_frand() * 20.0f); left *= sc; up *= sc; |