diff options
| author | Maiko Steeman <[email protected]> | 2022-04-24 10:48:50 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-04-24 11:48:50 +0200 |
| commit | ccfac59c60f292685cd4785233f1ac972bc74142 (patch) | |
| tree | adc200417b1fc1dddc73ee740586a9f6fef04ba0 /src/rcore.c | |
| parent | e1ee4b1466062d130b85e4a7763ceb7c3e05986f (diff) | |
| download | raylib-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.c | 4 |
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] |
