pub fn default_ortho2d(width: f32, height: f32) -> (Mat4, Mat4)Expand description
Creates a typical 2d orthographic projection with +Y extending downward and the +Z axis coming out towards the viewer.
ยงNote
When constructing orthographic projections, near must be less than far
to ensure correct depth testing. Reversed depth (near > far) will cause
back faces to be drawn over front faces, producing incorrect lighting.