Function orthoZO
- orthoZO(
out: mat4,
left: number,
right: number,
bottom: number,
top: number,
near: number,
far: number,
): mat4Parameters
- out: mat4
mat4 frustum matrix will be written into
- left: number
Left bound of the frustum
- right: number
Right bound of the frustum
- bottom: number
Bottom bound of the frustum
- top: number
Top bound of the frustum
- near: number
Near bound of the frustum
- far: number
Far bound of the frustum
Returns mat4
out
- out: mat4
Was this helpful?
Generates a orthogonal projection matrix with the given bounds. The near/far clip planes correspond to a normalized device coordinate Z range of [0, 1], which matches WebGPU/Vulkan/DirectX/Metal's clip volume.