[GH-ISSUE #5996] Native mods: adjust computed world fog color #1923

Closed
opened 2026-11-02 15:50:39 +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/5996

Originally assigned to: @Xmilon on GitHub.

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

Part of #4953's ViewportEvent additions. Add native_compute_fog_color(partial, camera, fog_type, color) after the ordinary fog calculation and before GPU upload. Native mods can adjust RGB; finite components in 0..=1 are accepted, invalid requests retain the original RGB. Preserve alpha, all distance fields and vanilla behavior without mods. Exclude title panoramas. Public counterpart: ViewportEvent.ComputeFogColor.

Validate against the player's pinned 26.3 FogRenderer bytecode, a fake-mod dispatch regression test, formatting and client Clippy. Client only; no game files or other projects' source.

🤖 Generated with Codex

Originally created by @Xmilon on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5996 Originally assigned to: @Xmilon on GitHub. > 🤖 Filed by Xmilon's AI agent (Codex), not by Xmilon personally. Part of #4953's ViewportEvent additions. Add native_compute_fog_color(partial, camera, fog_type, color) after the ordinary fog calculation and before GPU upload. Native mods can adjust RGB; finite components in 0..=1 are accepted, invalid requests retain the original RGB. Preserve alpha, all distance fields and vanilla behavior without mods. Exclude title panoramas. Public counterpart: ViewportEvent.ComputeFogColor. Validate against the player's pinned 26.3 FogRenderer bytecode, a fake-mod dispatch regression test, formatting and client Clippy. Client only; no game files or other projects' source. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6559036328 --> @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#1923
No description provided.