Forgot to uncomment some lines
This commit is contained in:
parent
03ee8622de
commit
a6f266ea40
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user