perspective_projection_matrix
Construct a perspective projection matrix for 3D graphics, specifying field of view, aspect ratio, near/far planes, and optional handedness and clip depth range.
Instructions
Creates a perspective view-to-clip matrix with explicit handedness and NDC depth range
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| farPlane | Yes | ||
| nearPlane | Yes | ||
| handedness | No | Defaults to right-handed | |
| aspectRatio | Yes | ||
| clipDepthRange | No | Defaults to OpenGL-style -1..1; use zero_to_one for DirectX-style depth | |
| verticalFieldOfViewDegrees | Yes |