sync correction

This commit is contained in:
Azaezel 2019-03-18 04:09:34 -05:00
parent c615d3e822
commit 04a6130df8
2 changed files with 2 additions and 9 deletions

View file

@ -344,14 +344,7 @@ void RenderProbeMgr::_setupStaticParameters()
probePositionsData[mEffectiveProbeCount] = Point4F(probePos.x, probePos.y, probePos.z,0);
probeRefPositionsData[mEffectiveProbeCount] = Point4F(refPos.x, refPos.y, refPos.z, 0);
Point3F projectScale=curEntry.mBounds.getExtents();
MatrixF transform = curEntry.getTransform();
transform.scale(projectScale);
//transform.setPosition(curEntry.getTransform().getPosition());
transform.fullInverse();
//transform.transpose();
probeWorldToObjData[mEffectiveProbeCount] = transform;// curEntry.getTransform();
probeWorldToObjData[mEffectiveProbeCount] = curEntry.getTransform();
Point3F bbMin = refPos - curEntry.mProbeRefScale/2;
Point3F bbMax = curEntry.mExtents/4;
probeBBMinData[mEffectiveProbeCount] = Point4F(bbMin.x, bbMin.y, bbMin.z, 0);