pub fn projection_matrix(
fov: f32,
aspect_ratio: f32,
near_plane: f32,
far_plane: f32,
) -> Mat4fExpand description
Returns a left-handed perspective projection matrix with a depth range from 0 to 1.
ยงArguments
fov- The full vertical field of view, in degrees.aspect_ratio- The width-to-height ratio of the viewport.near_plane- The distance to the near clipping plane.far_plane- The distance to the far clipping plane.