Slims down the obj size get math to just use the worldSphere radius rather than computing the bounds width to save cycles.

This commit is contained in:
Areloch 2020-08-03 18:12:21 -05:00
parent a257dc8399
commit b9e16649d9

View file

@ -826,11 +826,7 @@ void TSStatic::prepRenderImage(SceneRenderState* state)
}
else if (smUseStaticObjectFade)
{
//todo, scale-adjust the fade via bounds sizing?
Box3F bounds = getObjBox();
bounds.scale(getScale());
F32 boundsLen = bounds.len();
F32 boundsLen = getWorldSphere().radius;
if (boundsLen < smStaticObjectUnfadeableSize)
{