pub unsafe extern "C" fn ovrMatrix4f_OrthoSubProjection(
projection: ovrMatrix4f,
orthoScale: ovrVector2f,
orthoDistance: f32,
HmdToEyeOffsetX: f32,
) -> ovrMatrix4fExpand description
Generates an orthographic sub-projection.
Used for 2D rendering, Y is down.
in projection The perspective matrix that the orthographic matrix is derived from.
in orthoScale Equal to 1.0f / pixelsPerTanAngleAtCenter.
in orthoDistance Equal to the distance from the camera in meters, such as 0.8m.
in HmdToEyeOffsetX Specifies the offset of the eye from the center.
Returns the calculated projection matrix.