Function ultraviolet::projection::lh_yup::perspective_gl
source · pub fn perspective_gl(
vertical_fov: f32,
aspect_ratio: f32,
z_near: f32,
z_far: f32
) -> Mat4Expand description
Perspective projection matrix meant to be used with OpenGL.
vertical_fovshould be provided in radians.aspect_ratioshould be the quotientwidth / height.
This matrix is meant to be used when the source coordinate space is left-handed and y-up (the standard computer graphics coordinate space) and the destination coordinate space is left-handed and y-up with Z (depth) clip extending from -1.0 (close) to 1.0 (far).