mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
scale reflection properly
This commit is contained in:
parent
742447178b
commit
309d518249
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue