Use a (commented out) faster culling algorithm

This commit is contained in:
Vincent Lejeune 2014-09-11 19:34:10 +02:00
parent 6958539a71
commit e6881efbc3

View File

@ -156,6 +156,11 @@ bool isCulled(const scene::ICameraSceneNode *cam, const scene::ISceneNode *node)
if (!node->getAutomaticCulling())
return false;
// Faster albeit less precise alternative
/* core::aabbox3d<f32> tbox = node->getBoundingBox();
node->getAbsoluteTransformation().transformBoxEx(tbox);
return !(tbox.intersectsWithBox(cam->getViewFrustum()->getBoundingBox()));*/
scene::SViewFrustum frust = *cam->getViewFrustum();
//transform the frustum to the node's current absolute transformation