diff options
author | RunitaiLinden <davep@lindenlab.com> | 2023-08-30 11:20:11 -0500 |
---|---|---|
committer | RunitaiLinden <davep@lindenlab.com> | 2023-08-30 11:20:11 -0500 |
commit | 2ce27627a18787113c1b9a1fd99b5a516d693a8c (patch) | |
tree | a5ca1cbfc9eed7ddf07c4575f6bfddeefb401b99 /indra/newview/llreflectionmap.cpp | |
parent | 455bbcf742691b709353aa3c3e35a76d0ff38ee4 (diff) |
SL-19842 Followup -- fix sunlight going black and make automatic object probes more wishy-washy (removes dark splotches where probes get stuck in walls)
Diffstat (limited to 'indra/newview/llreflectionmap.cpp')
-rw-r--r-- | indra/newview/llreflectionmap.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llreflectionmap.cpp b/indra/newview/llreflectionmap.cpp index a039c8072a..2a2f4dbd5a 100644 --- a/indra/newview/llreflectionmap.cpp +++ b/indra/newview/llreflectionmap.cpp @@ -157,6 +157,7 @@ void LLReflectionMap::autoAdjustOrigin() } mRadius = llmax(sqrtf(r2.getF32()), 8.f); + } } else if (mViewerObject) @@ -204,6 +205,14 @@ F32 LLReflectionMap::getNearClip() { ret = ((LLVOVolume*)mViewerObject)->getReflectionProbeNearClip(); } + else if (mGroup) + { + ret = mRadius * 0.5f; // default to half radius for automatic object probes + } + else + { + ret = 1.f; // default to 1m for automatic terrain probes + } return llmax(ret, MINIMUM_NEAR_CLIP); } |