pub fn frustum(
left: f64,
right: f64,
bottom: f64,
top: f64,
near: f64,
far: f64,
) -> DMat4Expand description
Creates a perspective projection matrix from a frustum for use with OpenGL.
Expects a right-handed Y-up view space input. Outputs NDC with Z in [-1, 1] and Y-up.
This is the OpenGL glFrustum equivalent.
See https://registry.khronos.org/OpenGL-Refpages/gl2.1/xhtml/glFrustum.xml
ยงPanics
Will panic if near or far are less than or equal to zero when glam_assert is enabled.