perspective

Function perspective 

Source
pub fn perspective<T>(fovy: T, aspect: T, near: T, far: T) -> Matrix4<T>
where T: FloatScalar,
Expand description

Creates a perspective projection matrix.

ยงParameters

  • fovy: Field of view angle in radians (vertical)
  • aspect: Aspect ratio (width / height)
  • near: Near clipping plane distance
  • far: Far clipping plane distance

Uses the standard OpenGL perspective projection formula.