Game Development Reference
In-Depth Information
Our rendering setup needs to change in order to support the Rift, as mentioned before we
will need to render the game twice, one for each eye. We will start by setting up the view-
port for the area covered by the left eye.
SetViewport(0, 0, HorizontalResolution / 2, VerticalResolution);
We then need to calculate the half-screen's aspect ratio α and vertical field of view (FOV)
Ɵ fov
With these values we are able to build a non-distortion corrected projection matrix.
Search WWH ::




Custom Search