diff options
author | Dave Parks <davep@lindenlab.com> | 2022-06-21 11:58:58 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-06-21 11:58:58 -0500 |
commit | 8b4347cb10ab922f5001306912983cdd73a68309 (patch) | |
tree | 480ad94d62bb03ee6e71d84a448cc88332e452b1 | |
parent | fb5ff6a5388dc9622089e9937e8d81bc319cf3dd (diff) |
SL-17600 Revise reflection probe priorities
-rw-r--r-- | indra/newview/llreflectionmap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llreflectionmap.cpp b/indra/newview/llreflectionmap.cpp index 4d4eb802f1..2a7ab84501 100644 --- a/indra/newview/llreflectionmap.cpp +++ b/indra/newview/llreflectionmap.cpp @@ -74,10 +74,11 @@ void LLReflectionMap::autoAdjustOrigin() d.setAdd(bounds[0], bounds[1]); d.sub(mOrigin); mRadius = d.getLength3().getF32(); + mPriority = 1; } else if (mGroup->getSpatialPartition()->mPartitionType == LLViewerRegion::PARTITION_VOLUME) { - mPriority = 8; + mPriority = 1; // cast a ray towards 8 corners of bounding box // nudge origin towards center of empty space @@ -155,7 +156,7 @@ void LLReflectionMap::autoAdjustOrigin() else { // user placed probe - mPriority = 64; + mPriority = 2; // use center of octree node volume for nodes that are just branches without data mOrigin = node->getCenter(); |