mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
sync correction
This commit is contained in:
parent
25ed1bb367
commit
9ebe7c4ac2
2 changed files with 2 additions and 9 deletions
|
|
@ -344,14 +344,7 @@ void RenderProbeMgr::_setupStaticParameters()
|
||||||
probePositionsData[mEffectiveProbeCount] = Point4F(probePos.x, probePos.y, probePos.z,0);
|
probePositionsData[mEffectiveProbeCount] = Point4F(probePos.x, probePos.y, probePos.z,0);
|
||||||
probeRefPositionsData[mEffectiveProbeCount] = Point4F(refPos.x, refPos.y, refPos.z, 0);
|
probeRefPositionsData[mEffectiveProbeCount] = Point4F(refPos.x, refPos.y, refPos.z, 0);
|
||||||
|
|
||||||
Point3F projectScale=curEntry.mBounds.getExtents();
|
probeWorldToObjData[mEffectiveProbeCount] = curEntry.getTransform();
|
||||||
MatrixF transform = curEntry.getTransform();
|
|
||||||
transform.scale(projectScale);
|
|
||||||
//transform.setPosition(curEntry.getTransform().getPosition());
|
|
||||||
transform.fullInverse();
|
|
||||||
//transform.transpose();
|
|
||||||
|
|
||||||
probeWorldToObjData[mEffectiveProbeCount] = transform;// curEntry.getTransform();
|
|
||||||
Point3F bbMin = refPos - curEntry.mProbeRefScale/2;
|
Point3F bbMin = refPos - curEntry.mProbeRefScale/2;
|
||||||
Point3F bbMax = curEntry.mExtents/4;
|
Point3F bbMax = curEntry.mExtents/4;
|
||||||
probeBBMinData[mEffectiveProbeCount] = Point4F(bbMin.x, bbMin.y, bbMin.z, 0);
|
probeBBMinData[mEffectiveProbeCount] = Point4F(bbMin.x, bbMin.y, bbMin.z, 0);
|
||||||
|
|
|
||||||
|
|
@ -376,4 +376,4 @@ float4 main( PFXVertToPix IN ) : SV_TARGET
|
||||||
return float4(cubeColor, 1);
|
return float4(cubeColor, 1);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue