Explorar o código

add in secondary bounds box display for probes as that is not actually linked to the radius/box-based-on-radius

Azaezel %!s(int64=6) %!d(string=hai) anos
pai
achega
73a7d205e2
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      Engine/source/T3D/lighting/reflectionProbe.cpp

+ 3 - 0
Engine/source/T3D/lighting/reflectionProbe.cpp

@@ -770,8 +770,11 @@ void ReflectionProbe::_onRenderViz(ObjectRenderInst *ri,
 	  const MatrixF worldToObjectXfm = getTransform();
 
       Box3F cube(-Point3F(mRadius, mRadius, mRadius),Point3F(mRadius, mRadius, mRadius));
+	  Box3F wb = getObjBox();
       cube.setCenter(getPosition()+mProbePosOffset);
+	  wb.setCenter(getPosition() + mProbePosOffset);
       draw->drawCube(desc, cube, color, &worldToObjectXfm);
+	  draw->drawCube(desc, wb, color, &worldToObjectXfm);
    }
 }