Skip to main content

orthographic

Function orthographic 

Source
pub fn orthographic(
    left: f64,
    right: f64,
    bottom: f64,
    top: f64,
    near: f64,
    far: f64,
) -> DMat4
Expand description

Creates an orthographic projection matrix for use with DirectX and WebGPU.

Expects a right-handed Y-up view space input. Outputs NDC with Z in [0, 1] and Y-up.