From 8b2520b3316b85c318e600351333f7dec7c3754e Mon Sep 17 00:00:00 2001 From: SNMetamorph Date: Thu, 17 Oct 2024 17:10:28 +0400 Subject: [PATCH] client: render: fixed weird reflections distortion on non-axial mirror surfaces (fix #219) Thanks to g-cont for figuring out :) --- client/render/gl_subview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/render/gl_subview.cpp b/client/render/gl_subview.cpp index 72a639cf..aa2e4b03 100644 --- a/client/render/gl_subview.cpp +++ b/client/render/gl_subview.cpp @@ -89,6 +89,7 @@ texFlags_t R_SetupMirrorView( msurface_t *surf, ref_viewpass_t *rvp, matrix4x4 & rvp->viewangles[0] = anglemod( angles[0] ); rvp->viewangles[1] = anglemod( angles[1] ); rvp->viewangles[2] = anglemod( angles[2] ); + rvp->viewangles[2] = -rvp->viewangles[2]; rvp->vieworigin = origin; rvp->fov_x = RI->view.fov_x;