- hide map objects and their particles if not in current frustrum view
This commit is contained in:
parent
9e1001fac7
commit
63af39e034
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user