Add frustum culling (WIP)
This commit is contained in:
@@ -18,6 +18,11 @@ namespace Nz
|
||||
return m_instanceDataBuffer;
|
||||
}
|
||||
|
||||
inline const Matrix4f& WorldInstance::GetInvWorldMatrix() const
|
||||
{
|
||||
return m_invWorldMatrix;
|
||||
}
|
||||
|
||||
inline ShaderBinding& WorldInstance::GetShaderBinding()
|
||||
{
|
||||
return *m_shaderBinding;
|
||||
@@ -28,6 +33,11 @@ namespace Nz
|
||||
return *m_shaderBinding;
|
||||
}
|
||||
|
||||
inline const Matrix4f& WorldInstance::GetWorldMatrix() const
|
||||
{
|
||||
return m_worldMatrix;
|
||||
}
|
||||
|
||||
inline void WorldInstance::UpdateWorldMatrix(const Matrix4f& worldMatrix)
|
||||
{
|
||||
m_worldMatrix = worldMatrix;
|
||||
|
||||
Reference in New Issue
Block a user