[−]Function rusty_engine::prelude::glm::perspective_fov_no
pub fn perspective_fov_no<N>(
fov: N,
width: N,
height: N,
near: N,
far: N
) -> Matrix<N, U4, U4, <DefaultAllocator as Allocator<N, U4, U4>>::Buffer> where
N: RealField,
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