From 36f6aa24f0fc0a0e1d37bd1c2f15a6dbd28840b7 Mon Sep 17 00:00:00 2001 From: john Date: Sun, 18 Oct 2026 12:09:24 -0400 Subject: [PATCH] wertergfdv --- Camera.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Camera.h b/Camera.h index 0e822c5..c54d870 100644 --- a/Camera.h +++ b/Camera.h @@ -66,9 +66,10 @@ public: } glm::mat4 GetProjectionMatrix(float nearPlane, float farPlane) { - // FOV is horizontal; convert to the vertical angle glm expects so wide screens aren't stretched + // Quake Pro style: FOV is the horizontal angle on a 4:3 screen, so the vertical angle is fixed + // and wider windows/fullscreen reveal more to the sides instead of zooming in. const float aspect = (float)window->width / (float)window->height; - const float vfov = 2.0f * atan(tan(glm::radians(FOV) * 0.5f) / aspect); + const float vfov = 2.0f * atan(tan(glm::radians(FOV) * 0.5f) * 3.0f / 4.0f); return glm::perspective(vfov, aspect, nearPlane, farPlane); }