This function can be used to retrieve the projection matrix. The function returns the matrix ID value which can then be used in other matrix functions or to set the projection matrix of another camera (using camera_set_proj_mat()).
camera_get_proj_mat(camera_id)
| Argument | Description |
|---|---|
| camera_id | The unique camera ID value returned when you created the camera |
Matrix ID (real)
mat = camera_get_proj_mat(camera_view[0]);
The above code gets the projection matrix for the camera assigned to view port[0].