1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Merge pull request #37601 from BastiaanOlij/fix_hmd_projection

Fix aspect ratio on hmd projection matrix
This commit is contained in:
Rémi Verschelde
2020-04-05 12:41:02 +02:00
committed by GitHub

View File

@@ -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