// Used for 2D rendering, Y is down // orthoScale = 1.0f / pixelsPerTanAngleAtCenter // orthoDistance = distance from camera, such as 0.8m public static ovrMatrix4f GetOrthoSubProjection(ovrMatrix4f projection, ovrVector2f orthoScale, float orthoDistance, float eyeViewAdjustX) { return new ovrMatrix4f(ovrMatrix4f_OrthoSubProjection(projection, orthoScale, orthoDistance, eyeViewAdjustX)); }
private static extern ovrMatrix4f_Raw ovrMatrix4f_OrthoSubProjection(ovrMatrix4f projection, ovrVector2f orthoScale, float orthoDistance, float eyeViewAdjustX);