Skip to content
Snippets Groups Projects
Commit 8b4347cb authored by David Parks's avatar David Parks
Browse files

SL-17600 Revise reflection probe priorities

parent fb5ff6a5
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment