Mat4:fov
EditSets a projection matrix using raw projection angles and clipping planes.
This can be used for asymmetric or oblique projections.
self = Mat4:fov(left, right, up, down, near, far)Arguments
| Name | Type | Default | Description |
| left | number | The left half-angle of the projection, in radians. | |
| right | number | The right half-angle of the projection, in radians. | |
| up | number | The top half-angle of the projection, in radians. | |
| down | number | The bottom half-angle of the projection, in radians. | |
| near | number | The near plane of the projection. | |
| far | number | 0 | The far plane. Zero is a special value that will set an infinite far plane with a reversed Z range, which improves depth buffer precision and is the default. |
Returns
| Name | Type | Description |
| self | Mat4 | The modified matrix. |