Documentation / @ripl/3d / mat4Orthographic
Function: mat4Orthographic() ​
mat4Orthographic(
left,right,bottom,top,near,far):Matrix4
Defined in: 3d/src/math/matrix.ts:209
Constructs an orthographic projection matrix.
Depth maps to the WebGPU convention: the near plane projects to 0 and the far plane to 1. See mat4Perspective.
Parameters ​
| Parameter | Type |
|---|---|
left | number |
right | number |
bottom | number |
top | number |
near | number |
far | number |