Modified SceneNode::FrustumCull

Now provides an implementation which will test the bounding volume
against the frustum (Basic frustum culling)
Is now const
Disabled face culling on sprites


Former-commit-id: 5cb7a94b38ef8b0ffa5a78f16f5ef65a59ab375d
This commit is contained in:
Lynix
2014-06-05 21:28:17 +02:00
parent bc9c8c6bdb
commit a31ced1d76
10 changed files with 13 additions and 36 deletions

View File

@@ -438,14 +438,6 @@ NzModel& NzModel::operator=(NzModel&& node)
return *this;
}
bool NzModel::FrustumCull(const NzFrustumf& frustum)
{
if (!m_boundingVolumeUpdated)
UpdateBoundingVolume();
return frustum.Contains(m_boundingVolume);
}
void NzModel::InvalidateNode()
{
NzSceneNode::InvalidateNode();