You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Fix aspect ratio on hmd projection matrix
(cherry picked from commit a7438f0e61)
This commit is contained in:
committed by
Rémi Verschelde
parent
de1d021574
commit
94fab21348
@@ -145,7 +145,7 @@ void CameraMatrix::set_for_hmd(int p_eye, real_t p_aspect, real_t p_intraocular_
|
|||||||
f3 *= p_oversample;
|
f3 *= p_oversample;
|
||||||
|
|
||||||
// always apply KEEP_WIDTH aspect ratio
|
// always apply KEEP_WIDTH aspect ratio
|
||||||
f3 *= p_aspect;
|
f3 /= p_aspect;
|
||||||
|
|
||||||
switch (p_eye) {
|
switch (p_eye) {
|
||||||
case 1: { // left eye
|
case 1: { // left eye
|
||||||
|
|||||||
Reference in New Issue
Block a user