Function cgmath::frustum

source ·
pub fn frustum<S: BaseFloat>(
    left: S,
    right: S,
    bottom: S,
    top: S,
    near: S,
    far: S
) -> Matrix4<S>
Expand description

Create a perspective matrix from a view frustum.

This is the equivalent of the now deprecated glFrustum function.