mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
add in secondary bounds box display for probes as that is not actually linked to the radius/box-based-on-radius
This commit is contained in:
parent
913fbef66d
commit
73a7d205e2
1 changed files with 3 additions and 0 deletions
|
|
@ -770,8 +770,11 @@ void ReflectionProbe::_onRenderViz(ObjectRenderInst *ri,
|
|||
const MatrixF worldToObjectXfm = getTransform();
|
||||
|
||||
Box3F cube(-Point3F(mRadius, mRadius, mRadius),Point3F(mRadius, mRadius, mRadius));
|
||||
Box3F wb = getObjBox();
|
||||
cube.setCenter(getPosition()+mProbePosOffset);
|
||||
wb.setCenter(getPosition() + mProbePosOffset);
|
||||
draw->drawCube(desc, cube, color, &worldToObjectXfm);
|
||||
draw->drawCube(desc, wb, color, &worldToObjectXfm);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue