[][src]Function camera_ss::fov_perspective_transform

pub fn fov_perspective_transform(
    field_of_view: f32,
    aspect_ratio: f32,
    near: f32,
    far: f32
) -> Matrix4<f32>

Create a perspective transform that takes eye space coordinates into clip space using field of view and aspect ratio to define the viewing frustrum. We assume that the center of the near plane is also the center of the screen.