Skip to main content

perspective

Function perspective 

Source
pub fn perspective(fov_y: f64, aspect: f64, near: f64, far: f64) -> Mat4
Expand description

Perspective projection (fov_y in radians, aspect = width/height)