look_at_view_matrix
Compute a world-to-view matrix from camera position, target, and up vector, supporting right- or left-handed coordinate systems.
Instructions
Creates a row-major look-at world-to-view matrix for a right- or left-handed coordinate system
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| up | Yes | Approximate camera-up direction | |
| eye | Yes | Camera world position | |
| target | Yes | World position the camera looks toward | |
| handedness | No | Defaults to right-handed, where the camera looks down negative view-space Z |