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