From a7438f0e61fca161b6324a230b8914e4f6c56b3f Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Sun, 5 Apr 2020 16:56:43 +1000 Subject: [PATCH] Fix aspect ratio on hmd projection matrix --- core/math/camera_matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/math/camera_matrix.cpp b/core/math/camera_matrix.cpp index 380bae871a1..eb33aa1736a 100644 --- a/core/math/camera_matrix.cpp +++ b/core/math/camera_matrix.cpp @@ -145,7 +145,7 @@ void CameraMatrix::set_for_hmd(int p_eye, real_t p_aspect, real_t p_intraocular_ f3 *= p_oversample; // always apply KEEP_WIDTH aspect ratio - f3 *= p_aspect; + f3 /= p_aspect; switch (p_eye) { case 1: { // left eye