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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"verticalFieldOfViewDegrees": "<verticalFieldOfViewDegrees>",
"aspectRatio": "<aspectRatio>",
"nearPlane": "<nearPlane>",
"farPlane": "<farPlane>"
},
"name": "perspective_projection_matrix"
}
}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 |