mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
cleaned up member::radius
This commit is contained in:
parent
c98f257cae
commit
1c62080f7f
12 changed files with 18 additions and 18 deletions
|
|
@ -662,7 +662,7 @@ S32 TSShapeInstance::setDetailFromDistance( const SceneRenderState *state, F32 s
|
|||
|
||||
// We're inlining SceneRenderState::projectRadius here to
|
||||
// skip the unnessasary divide by zero protection.
|
||||
F32 pixelRadius = ( mShape->radius / scaledDistance ) * state->getWorldToScreenScale().y * pixelScale;
|
||||
F32 pixelRadius = ( mShape->mRadius / scaledDistance ) * state->getWorldToScreenScale().y * pixelScale;
|
||||
F32 pixelSize = pixelRadius * smDetailAdjust;
|
||||
|
||||
if ( pixelSize < smSmallestVisiblePixelSize ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue