pub fn orthographic(
left: f32,
right: f32,
bottom: f32,
top: f32,
near: f32,
far: f32,
) -> Mat4Expand description
Creates an orthographic projection matrix for use with DirectX and WebGPU.
Expects a left-handed Y-up view space input. Outputs NDC with Z in [0, 1] and Y-up.
ยงPanics
Will panic if left is equal to right, if bottom is equal to
top, or if near is equal to far when glam_assert is enabled.