scale reflection properly

This commit is contained in:
Azaezel 2019-02-19 09:38:34 -06:00
parent 742447178b
commit 309d518249

View file

@ -333,8 +333,8 @@ void RenderProbeMgr::_setupStaticParameters()
probeRefPositionsData[mEffectiveProbeCount] = Point4F(refPos.x, refPos.y, refPos.z, 0);
probeWorldToObjData[mEffectiveProbeCount] = curEntry.getTransform();
Point3F bbMin = refPos - curEntry.mProbeRefScale;
Point3F bbMax = refPos + curEntry.mProbeRefScale;
Point3F bbMin = refPos - curEntry.mProbeRefScale/2;
Point3F bbMax = refPos + curEntry.mProbeRefScale/2;
probeBBMinData[mEffectiveProbeCount] = Point4F(bbMin.x, bbMin.y, bbMin.z, 0);
probeBBMaxData[mEffectiveProbeCount] = Point4F(bbMax.x, bbMax.y, bbMax.z, 0);