[][src]Function nalgebra_glm::infinite_perspective_rh_zo

pub fn infinite_perspective_rh_zo<N: RealField>(
    aspect: N,
    fovy: N,
    near: N
) -> TMat4<N>

Build infinite right-handed perspective projection matrix with [0,1] depth range.


  • aspect - Ratio of viewport width to height (width/height)
  • fovy - Field of view, in radians
  • near - Distance from the viewer to the near clipping plane.

Important note

The aspect and fovy argument are interchanged compared to the original GLM API.