From d0e50d240927d0d454d877d5eecd2553190e5c76 Mon Sep 17 00:00:00 2001 From: Georg Hagen Date: Tue, 30 Jul 2024 22:40:08 +0200 Subject: [PATCH] Add GetProjectionMatrix --- openVulkanoCpp/Scene/Camera.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/openVulkanoCpp/Scene/Camera.hpp b/openVulkanoCpp/Scene/Camera.hpp index b1c0e72..fa127f8 100644 --- a/openVulkanoCpp/Scene/Camera.hpp +++ b/openVulkanoCpp/Scene/Camera.hpp @@ -138,11 +138,10 @@ namespace OpenVulkano::Scene [[nodiscard]] auto GetForward() const { return GetViewDirection(); } [[nodiscard]] const Math::Matrix4f& GetViewMatrix() const { return m_view; } - - [[nodiscard]] Math::Frustum GetFrustum() const - { - return {m_viewProjection}; - } + + [[nodiscard]] const Math::Matrix4f& GetProjectionMatrix() const { return m_projection; } + + [[nodiscard]] Math::Frustum GetFrustum() const { return {m_viewProjection}; } [[nodiscard]] float GetScaleFactor() const { return m_scaleFactor; } [[nodiscard]] float GetPixelScaleFactor() const { return m_perPixelScaleFactor; }