summaryrefslogtreecommitdiffhomepage
path: root/src/rcore.c
diff options
context:
space:
mode:
authorMaiko Steeman <[email protected]>2022-04-24 10:48:50 +0100
committerGitHub <[email protected]>2022-04-24 11:48:50 +0200
commitccfac59c60f292685cd4785233f1ac972bc74142 (patch)
treeadc200417b1fc1dddc73ee740586a9f6fef04ba0 /src/rcore.c
parente1ee4b1466062d130b85e4a7763ceb7c3e05986f (diff)
downloadraylib-ccfac59c60f292685cd4785233f1ac972bc74142.tar.gz
raylib-ccfac59c60f292685cd4785233f1ac972bc74142.zip
Fix for vr rendering not taking render target size into account (#2424)
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 6cff9e18..d6faeabd 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -2348,8 +2348,8 @@ VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device)
// Fovy is normally computed with: 2*atan2f(device.vScreenSize, 2*device.eyeToScreenDistance)
// ...but with lens distortion it is increased (see Oculus SDK Documentation)
- //float fovy = 2.0f*atan2f(device.vScreenSize*0.5f*distortionScale, device.eyeToScreenDistance); // Really need distortionScale?
- float fovy = 2.0f*(float)atan2f(device.vScreenSize*0.5f, device.eyeToScreenDistance);
+ float fovy = 2.0f*atan2f(device.vScreenSize*0.5f*distortionScale, device.eyeToScreenDistance); // Really need distortionScale?
+ // float fovy = 2.0f*(float)atan2f(device.vScreenSize*0.5f, device.eyeToScreenDistance);
// Compute camera projection matrices
float projOffset = 4.0f*lensShift; // Scaled to projection space coordinates [-1..1]