- hide map objects and their particles if not in current frustrum view

This commit is contained in:
Mark Vejvoda 2012-03-27 06:09:30 +00:00
parent 9e1001fac7
commit 63af39e034

View File

@ -7738,6 +7738,7 @@ VisibleQuadContainerCache & Renderer::getQuadCache( bool updateOnDirtyFrame,
//bool insideQuad = PointInFrustum(quadCache.frustumData, o->getPos().x, o->getPos().y, o->getPos().z );
bool insideQuad = CubeInFrustum(quadCache.frustumData, o->getPos().x, o->getPos().y, o->getPos().z, 1);
if(insideQuad == false) {
o->setVisible(false);
continue;
}
}