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();
|
camnode->render();
|
||||||
const core::aabbox3df smallcambox = camnode->
|
const core::aabbox3df smallcambox = camnode->
|
||||||
getViewFrustum()->getBoundingBox();
|
getViewFrustum()->getBoundingBox();
|
||||||
// core::aabbox3df trackbox(vmin->toIrrVector(), vmax->toIrrVector() -
|
core::aabbox3df trackbox(vmin->toIrrVector(), vmax->toIrrVector() -
|
||||||
// core::vector3df(0, 30, 0));
|
core::vector3df(0, 30, 0));
|
||||||
|
|
||||||
|
|
||||||
// Set up a nice ortho projection that contains our camera frustum
|
// Set up a nice ortho projection that contains our camera frustum
|
||||||
core::aabbox3df box = smallcambox;
|
core::aabbox3df box = smallcambox;
|
||||||
// box = box.intersect(trackbox);
|
box = box.intersect(trackbox);
|
||||||
|
|
||||||
|
|
||||||
// SunCamViewMatrix.transformBoxEx(trackbox);
|
SunCamViewMatrix.transformBoxEx(trackbox);
|
||||||
SunCamViewMatrix.transformBoxEx(box);
|
SunCamViewMatrix.transformBoxEx(box);
|
||||||
|
|
||||||
core::vector3df extent = box.getExtent();
|
core::vector3df extent = box.getExtent();
|
||||||
|
Loading…
Reference in New Issue
Block a user