mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-18 20:00:56 +00:00
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:
parent
a257dc8399
commit
b9e16649d9
1 changed files with 1 additions and 5 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue