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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user