OculusVR: fix stereoscopic view
This commit is contained in:
parent
3f4aa8100e
commit
714ab421f9
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user