Add GetFrustum getter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user