Add GetFrustum getter

This commit is contained in:
2023-08-19 00:28:11 +02:00
parent 7e3aae1681
commit d49b158a9b

View File

@@ -8,6 +8,7 @@
#include "Node.hpp"
#include "Math/Math.hpp"
#include "Math/Frustum.hpp"
namespace openVulkanoCpp::Scene
{
@@ -108,6 +109,11 @@ namespace openVulkanoCpp::Scene
{
return Math::Utils::transpose(m_view)[2];
}
[[nodiscard]] Math::Frustum GetFrustum() const
{
return {m_viewProjection};
}
};
class PerspectiveCamera : public Camera