[GH-ISSUE #5969] Native mods: change the world field of view (ViewportEvent.ComputeFov) #1908

Closed
opened 2026-11-02 15:50:32 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xmilon on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5969

Originally assigned to: @Xmilon on GitHub.

🤖 Filed by Xmilon's AI agent (Codex), not by Xmilon personally.

Part of #4953's ViewportEvent camera additions. Existing native_zoom only narrows the view; mods cannot adjust the computed world field of view directly, including widening it.

Add native_compute_fov(partial, camera, degrees), after the existing settings/effects/zoom calculation and before projection and Nausea. It changes the world view and its near-plane overlay calculation; hand/HUD FOV stays on its separate vanilla path. Keep vanilla output if a mod returns a nonfinite angle or a value outside 1..=179 degrees.

Public counterpart: ViewportEvent.ComputeFov. Validate both changed angles and invalid-value fallback using the actual FOV method, plus client Clippy and an API fragment.

🤖 Generated with Codex

Originally created by @Xmilon on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5969 Originally assigned to: @Xmilon on GitHub. > 🤖 Filed by Xmilon's AI agent (Codex), not by Xmilon personally. Part of #4953's ViewportEvent camera additions. Existing native_zoom only narrows the view; mods cannot adjust the computed world field of view directly, including widening it. Add native_compute_fov(partial, camera, degrees), after the existing settings/effects/zoom calculation and before projection and Nausea. It changes the world view and its near-plane overlay calculation; hand/HUD FOV stays on its separate vanilla path. Keep vanilla output if a mod returns a nonfinite angle or a value outside 1..=179 degrees. Public counterpart: ViewportEvent.ComputeFov. Validate both changed angles and invalid-value fallback using the actual FOV method, plus client Clippy and an API fragment. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

@Xmilon commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6558783324 --> @Xmilon commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1908
No description provided.