Skip to content

Commit

Permalink
OculusVR: fix stereoscopic view
Browse files Browse the repository at this point in the history
  • Loading branch information
kondrak committed Apr 11, 2016
1 parent 3f4aa81 commit 714ab42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hmd_ovr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 714ab42

Please sign in to comment.