summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
authorMatthew Oros <[email protected]>2023-12-13 15:24:24 -0500
committerGitHub <[email protected]>2023-12-13 21:24:24 +0100
commitcec2261e968bfc554d7b1639dd4d55ab4e2235e6 (patch)
tree52553bd00254b7f4c848debeb1366464d54c3bfe /src/rcore.c
parent387506faab0339dea6854dd79b80282d528428c8 (diff)
downloadraylib-cec2261e968bfc554d7b1639dd4d55ab4e2235e6.tar.gz
raylib-cec2261e968bfc554d7b1639dd4d55ab4e2235e6.zip
[rcore] Flip VR screens (#3633)
Diffstat (limited to 'src/rcore.c')
-rw-r--r--src/rcore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rcore.c b/src/rcore.c
index a85b0971..8691be30 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1192,8 +1192,8 @@ VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device)
// NOTE: Camera movement might seem more natural if we model the head.
// Our axis of rotation is the base of our head, so we might want to add
// some y (base of head to eye level) and -z (center of head to eye protrusion) to the camera positions.
- config.viewOffset[0] = MatrixTranslate(-device.interpupillaryDistance*0.5f, 0.075f, 0.045f);
- config.viewOffset[1] = MatrixTranslate(device.interpupillaryDistance*0.5f, 0.075f, 0.045f);
+ config.viewOffset[0] = MatrixTranslate(device.interpupillaryDistance*0.5f, 0.075f, 0.045f);
+ config.viewOffset[1] = MatrixTranslate(-device.interpupillaryDistance*0.5f, 0.075f, 0.045f);
// Compute eyes Viewports
/*