Add camera operator API to CameraService

This commit is contained in:
Luke Street
2026-08-07 00:34:57 -06:00
parent 2c7ab755a0
commit c5933be631
5 changed files with 189 additions and 2 deletions
+3
View File
@@ -625,6 +625,9 @@ if (svc_camera->get_camera(mod_ctx, game_view, &camera) == MOD_OK) {
first in-game frame. Projection matrices match the renderer's WebGPU clip convention and renderer depth convention
(reversed-Z by default).
Camera operators allow overriding the main camera. When an operator callback returns true, its values replace the camera
state for the current frame. Register and unregister using `register_camera_operator` / `unregister_camera_operator`.
---
## Hooking Game Functions