Add frustum culling (WIP)

This commit is contained in:
Jérôme Leclercq
2021-08-19 23:26:34 +02:00
parent 8db8533300
commit 8546631f62
15 changed files with 643 additions and 463 deletions

View File

@@ -13,7 +13,8 @@
namespace Nz
{
Model::Model(std::shared_ptr<GraphicalMesh> graphicalMesh) :
Model::Model(std::shared_ptr<GraphicalMesh> graphicalMesh, const Boxf& aabb) :
InstancedRenderable(aabb),
m_graphicalMesh(std::move(graphicalMesh))
{
m_submeshes.reserve(m_graphicalMesh->GetSubMeshCount());