Merge pull request #757 from kondrak/master

OculusVR: fix stereoscopic view
This commit is contained in:
Branimir Karadžić 2016-04-11 13:12:55 -07:00
commit 76e179d7dc
1 changed files with 3 additions and 3 deletions

View File

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