OculusVR: fix stereoscopic view

This commit is contained in:
Krzysztof Kondrak 2016-04-11 20:57:34 +02:00
parent 3f4aa8100e
commit 714ab421f9

View File

@ -248,9 +248,9 @@ namespace bgfx
} }
} }
eye.viewOffset[0] = erd.HmdToEyeOffset.x; eye.viewOffset[0] = -erd.HmdToEyeOffset.x;
eye.viewOffset[1] = erd.HmdToEyeOffset.y; eye.viewOffset[1] = -erd.HmdToEyeOffset.y;
eye.viewOffset[2] = erd.HmdToEyeOffset.z; eye.viewOffset[2] = -erd.HmdToEyeOffset.z;
eye.pixelsPerTanAngle[0] = erd.PixelsPerTanAngleAtCenter.x; eye.pixelsPerTanAngle[0] = erd.PixelsPerTanAngleAtCenter.x;
eye.pixelsPerTanAngle[1] = erd.PixelsPerTanAngleAtCenter.y; eye.pixelsPerTanAngle[1] = erd.PixelsPerTanAngleAtCenter.y;