Function nalgebra_glm::perspective_fov_rh
source · pub fn perspective_fov_rh<T: RealNumber>(
fov: T,
width: T,
height: T,
near: T,
far: T,
) -> TMat4<T>
Expand description
Creates a matrix for a right hand perspective-view frustum with a depth range of -1 to 1
§Parameters
fov
- Field of view, in radianswidth
- Width of the viewportheight
- Height of the viewportnear
- Distance from the viewer to the near clipping planefar
- Distance from the viewer to the far clipping plane