From d7f1f4916556618eceaf025885d13ece64e0ab17 Mon Sep 17 00:00:00 2001 From: Orange Date: Fri, 25 Apr 2025 23:52:10 +0300 Subject: [PATCH] resetting state --- include/omath/projection/camera.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/omath/projection/camera.hpp b/include/omath/projection/camera.hpp index 7c3473b..ca7b19d 100644 --- a/include/omath/projection/camera.hpp +++ b/include/omath/projection/camera.hpp @@ -62,31 +62,37 @@ namespace omath::projection void SetFieldOfView(const FieldOfView& fov) { m_fieldOfView = fov; + m_viewProjectionMatrix = std::nullopt; } void SetNearPlane(const float near) { m_nearPlaneDistance = near; + m_viewProjectionMatrix = std::nullopt; } void SetFarPlane(const float far) { m_farPlaneDistance = far; + m_viewProjectionMatrix = std::nullopt; } void SetViewAngles(const ViewAnglesType& viewAngles) { m_viewAngles = viewAngles; + m_viewProjectionMatrix = std::nullopt; } void SetOrigin(const Vector3& origin) { m_origin = origin; + m_viewProjectionMatrix = std::nullopt; } void SetViewPort(const ViewPort& viewPort) { m_viewPort = viewPort; + m_viewProjectionMatrix = std::nullopt; } [[nodiscard]] const FieldOfView& GetFieldOfView() const