Merge pull request #2283 from encounter/camera-operator

Add camera operator API to CameraService
This commit is contained in:
TakaRikka
2026-08-07 03:44:59 -07:00
committed by GitHub
5 changed files with 189 additions and 2 deletions
+3
View File
@@ -633,6 +633,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