Pārlūkot izejas kodu

scale reflection properly

Azaezel 6 gadi atpakaļ
vecāks
revīzija
309d518249
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      Engine/source/renderInstance/renderProbeMgr.cpp

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

@@ -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);