Getting the GL side up-to-date to match.

This commit is contained in:
Areloch 2018-10-06 17:50:15 -05:00
parent 24007432e8
commit 4efcb567b0
21 changed files with 694 additions and 286 deletions

View file

@ -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);
}
}