From 607c034be75b942847f2202eef29cd1bb65f82dd Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 25 Apr 2026 04:51:10 +0300 Subject: [PATCH] fix --- include/omath/linear_algebra/mat.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/linear_algebra/mat.hpp b/include/omath/linear_algebra/mat.hpp index 86d50ed..b1efa0e 100644 --- a/include/omath/linear_algebra/mat.hpp +++ b/include/omath/linear_algebra/mat.hpp @@ -720,7 +720,7 @@ namespace omath { const auto inv_tan_half_hfov = 1.f / std::tan(angles::degrees_to_radians(horizontal_fov) / 2.f); const auto x_axis = inv_tan_half_hfov; - const auto y_axis = inv_tan_half_hfov / aspect_ratio; + const auto y_axis = inv_tan_half_hfov * aspect_ratio; if constexpr (DepthRange == NDCDepthRange::ZERO_TO_ONE) return {{x_axis, 0.f, 0.f, 0.f},