From 2fa0c500a777be8ec2729efa3d45df3c3a81c3a6 Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 17 Mar 2025 08:59:41 +0300 Subject: [PATCH] added magic number --- include/omath/engines/iw_engine/Formulas.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/omath/engines/iw_engine/Formulas.hpp b/include/omath/engines/iw_engine/Formulas.hpp index bd757d2..3af95c7 100644 --- a/include/omath/engines/iw_engine/Formulas.hpp +++ b/include/omath/engines/iw_engine/Formulas.hpp @@ -41,7 +41,7 @@ namespace omath::iw_engine inline Mat4x4 CalcPerspectiveProjectionMatrix(const float fieldOfView, const float aspectRatio, const float near, const float far) { - const float fovHalfTan = std::tan(angles::DegreesToRadians(fieldOfView) / 2.f); + const float fovHalfTan = std::tan(angles::DegreesToRadians(fieldOfView) / 2.f) * 0.75f; return {