[−][src]Function nalgebra_glm::reversed_perspective_rh_zo
pub fn reversed_perspective_rh_zo<N: RealField>(
aspect: N,
fovy: N,
near: N,
far: N
) -> TMat4<N>
Creates a matrix for a right hand perspective-view frustum with a reversed depth range of 0 to 1.
Parameters
aspect
- Ratio of viewport width to height (width/height)fovy
- Field of view, in radiansnear
- Distance from the viewer to the near clipping planefar
- Distance from the viewer to the far clipping plane
Important note
The aspect
and fovy
argument are interchanged compared to the original GLM API.