mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Scaling correction to probes in deferred mode to improve parallax adjustment
Ensure that probes are masked to be rendered during bake passes so they can contribute during a bake allowing multibakes Adjusted order of the connect data for the forward shaders to fix a mis-port issue
This commit is contained in:
parent
c1a88ec423
commit
e04f844240
4 changed files with 4 additions and 4 deletions
|
|
@ -328,7 +328,7 @@ void RenderProbeMgr::getBestProbes(const Point3F& objPosition, ProbeDataSet* pro
|
|||
MatrixF p2A = curEntry.mProbeInfo->mTransform;
|
||||
probeDataSet->probeWorldToObjArray[i] = p2A;
|
||||
p2A.inverse();
|
||||
probeDataSet->refScaleArray[i] = curEntry.mProbeInfo->mProbeRefScale / p2A.getScale();
|
||||
probeDataSet->refScaleArray[i] = curEntry.mProbeInfo->mProbeRefScale / (p2A.getScale()*2);
|
||||
|
||||
Point3F probePos = curEntry.mProbeInfo->mObject->getPosition();
|
||||
Point3F refPos = probePos + curEntry.mProbeInfo->mProbeRefOffset * probeDataSet->refScaleArray[i].asPoint3F();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue