diff --git a/src/graphics/render.cpp b/src/graphics/render.cpp index 4ff05aa04..9e6241440 100644 --- a/src/graphics/render.cpp +++ b/src/graphics/render.cpp @@ -658,16 +658,15 @@ void IrrDriver::computeCameraMatrix(scene::ICameraSceneNode * const camnode, siz camnode->render(); const core::aabbox3df smallcambox = camnode-> getViewFrustum()->getBoundingBox(); - // core::aabbox3df trackbox(vmin->toIrrVector(), vmax->toIrrVector() - - // core::vector3df(0, 30, 0)); - + core::aabbox3df trackbox(vmin->toIrrVector(), vmax->toIrrVector() - + core::vector3df(0, 30, 0)); // Set up a nice ortho projection that contains our camera frustum core::aabbox3df box = smallcambox; - // box = box.intersect(trackbox); + box = box.intersect(trackbox); - // SunCamViewMatrix.transformBoxEx(trackbox); + SunCamViewMatrix.transformBoxEx(trackbox); SunCamViewMatrix.transformBoxEx(box); core::vector3df extent = box.getExtent();