From 568a39d20335cc4c6b1260f8a5102e1fec028166 Mon Sep 17 00:00:00 2001 From: "Dileep V. Reddy" Date: Mon, 30 Sep 2024 07:58:43 -0600 Subject: [PATCH] Removing pre-clipping of Frustum if pitch > 46 degrees and viewpoint is not allowed out of bounds. This is like old behavior. --- src/rendering/hwrenderer/scene/hw_drawinfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rendering/hwrenderer/scene/hw_drawinfo.cpp b/src/rendering/hwrenderer/scene/hw_drawinfo.cpp index b7c02a8414..3453b6e500 100644 --- a/src/rendering/hwrenderer/scene/hw_drawinfo.cpp +++ b/src/rendering/hwrenderer/scene/hw_drawinfo.cpp @@ -366,6 +366,7 @@ angle_t HWDrawInfo::FrustumAngle() { // If pitch is larger than this you can look all around at an FOV of 90 degrees if (fabs(Viewpoint.HWAngles.Pitch.Degrees()) > 89.0) return 0xffffffff; + else if (fabs(Viewpoint.HWAngles.Pitch.Degrees()) > 46.0 && !Viewpoint.IsAllowedOoB()) return 0xffffffff; // Just like 4.12.2 and older did int aspMult = AspectMultiplier(r_viewwindow.WidescreenRatio); // 48 == square window double absPitch = fabs(Viewpoint.HWAngles.Pitch.Degrees()); // Smaller aspect ratios still clip too much. Need a better solution