Sets this matrix to represent an orthographic projection, useful for 2D/isometric rendering.
This can be used with Pass:setProjection
, or it can be sent to a Shader
for use in GLSL.
Arguments
Name | Type | Description |
left | number |
The left edge of the projection.
|
right | number |
The right edge of the projection.
|
bottom | number |
The bottom edge of the projection.
|
top | number |
The top edge of the projection.
|
near | number |
The position of the near clipping plane.
|
far | number |
The position of the far clipping plane.
|
Returns
Name | Type | Description |
self | Mat4 |
The modified matrix.
|
Arguments
Name | Type | Description |
width | number |
The width of the projection.
|
height | number |
The height of the projection.
|
near | number |
The position of the near clipping plane.
|
far | number |
The position of the far clipping plane.
|
Returns
Name | Type | Description |
self | Mat4 |
The modified matrix.
|
See also