Преглед изворни кода

'correct' refscale back to mismatching between forward and deferred. Because Reasons. >.>

AzaezelX пре 6 година
родитељ
комит
9859d9b7bc
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Engine/source/renderInstance/renderProbeMgr.cpp

+ 2 - 2
Engine/source/renderInstance/renderProbeMgr.cpp

@@ -639,8 +639,8 @@ void RenderProbeMgr::_update4ProbeConsts(const SceneData &sgData,
          probeWorldToObjArray[effectiveProbeCount] = curEntry.getTransform();
          probeWorldToObjArray[effectiveProbeCount] = curEntry.getTransform();
 
 
          Point3F refPos = curEntry.getPosition() + curEntry.mProbeRefOffset;
          Point3F refPos = curEntry.getPosition() + curEntry.mProbeRefOffset;
-         Point3F refBoxMin = refPos - curEntry.mProbeRefScale/2 * curEntry.getTransform().getScale();
-         Point3F refBoxMax = refPos + curEntry.mProbeRefScale/2 * curEntry.getTransform().getScale();
+         Point3F refBoxMin = refPos - curEntry.mProbeRefScale * curEntry.getTransform().getScale();
+         Point3F refBoxMax = refPos + curEntry.mProbeRefScale * curEntry.getTransform().getScale();
 
 
          refBoxMinArray[effectiveProbeCount] = Point4F(refBoxMin.x, refBoxMin.y, refBoxMin.z, 0);
          refBoxMinArray[effectiveProbeCount] = Point4F(refBoxMin.x, refBoxMin.y, refBoxMin.z, 0);
          refBoxMaxArray[effectiveProbeCount] = Point4F(refBoxMax.x, refBoxMax.y, refBoxMax.z, 0);
          refBoxMaxArray[effectiveProbeCount] = Point4F(refBoxMax.x, refBoxMax.y, refBoxMax.z, 0);