perspective
Matrix4 perspective(Float fovy_radians, Float aspect, Float near_plane, Float far_plane) noexceptParameters
| Name | Type | Description |
|---|---|---|
fovy_radians | Float | |
aspect | Float | |
near_plane | Float | Near clip distance (> 0); the only precision knob. |
far_plane | Float | Ignored (the far plane is at infinity). |
Returns
Matrix4
Description
Builds a right-handed reverse-Z perspective projection with an infinite far plane.
Precondition
The pipeline clears depth to 0 and compares with GREATER_OR_EQUAL.
See also
engine/foundation/core/include/README.md

