ortho4

Function ortho4 

Source
pub fn ortho4<T>(
    left: T,
    right: T,
    bottom: T,
    top: T,
    near: T,
    far: T,
) -> Matrix4<T>
where T: Scalar,
Expand description

Creates an orthographic projection matrix.

ยงParameters

  • left, right: X-axis bounds
  • bottom, top: Y-axis bounds
  • near, far: Z-axis bounds (depth)

Objects maintain their size regardless of depth in orthographic projection.