diff options
author | Bastiaan Olij <mux213@gmail.com> | 2020-04-05 16:56:43 +1000 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-05 12:41:29 +0200 |
commit | 94fab213482fd944debc50e255e7b395d391cc33 (patch) | |
tree | 8a506ed3b17a379f7a96568c499d92e2ea1ad739 /core | |
parent | de1d021574b6f33fb7430f303c360361dd5870bd (diff) |
Fix aspect ratio on hmd projection matrix
(cherry picked from commit a7438f0e61fca161b6324a230b8914e4f6c56b3f)
Diffstat (limited to 'core')
-rw-r--r-- | core/math/camera_matrix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/camera_matrix.cpp b/core/math/camera_matrix.cpp index c4981b954b..c36070e47f 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 |