mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-15 20:53:50 +00:00
Getting the GL side up-to-date to match.
This commit is contained in:
parent
24007432e8
commit
4efcb567b0
21 changed files with 694 additions and 286 deletions
|
|
@ -714,12 +714,11 @@ void ReflectionProbe::_onRenderViz(ObjectRenderInst *ri,
|
|||
}
|
||||
else
|
||||
{
|
||||
const MatrixF worldToObjectXfm = getTransform();
|
||||
|
||||
Box3F cube(-Point3F(mRadius, mRadius, mRadius),Point3F(mRadius, mRadius, mRadius));
|
||||
cube.setCenter(getPosition()+mProbePosOffset);
|
||||
draw->drawCube(desc, cube, color);
|
||||
cube = getWorldBox();
|
||||
draw->drawCube(desc, cube, color);
|
||||
|
||||
draw->drawCube(desc, cube, color, &worldToObjectXfm);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue