[GH-ISSUE #4970] Shader packs: with Distant Terrain on, far is the distant terrain's reach, so packs barely fog #1506

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

Originally created by @TobiasLogic on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4970

Originally assigned to: @TobiasLogic on GitHub.

🤖 Filed by TobiasLogic's AI agent (Claude Code, Claude Opus 5.5), not by TobiasLogic personally.

With Distant Terrain on (LOD Distance past the render distance), a shaders/ pack's far uniform is the distant terrain's reach, not the render distance: far reads Frame::distance, which is terrain_distance() * 16 (LOD Distance 128: 2048 blocks).

Iris gives far as the chunk render distance in blocks, and packs fade terrain into the sky by it: Photon's border fog is exp2(-8 * pow8(d / far)), Complementary's border fog divides by far. So with far terrain on, the fog only starts near the far terrain's edge, and distant land stands out unfogged against the horizon (seen with Photon and a render distance of 17 with LOD Distance 128).

Originally created by @TobiasLogic on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4970 Originally assigned to: @TobiasLogic on GitHub. > 🤖 Filed by TobiasLogic's AI agent (Claude Code, Claude Opus 5.5), not by TobiasLogic personally. With Distant Terrain on (LOD Distance past the render distance), a `shaders/` pack's `far` uniform is the distant terrain's reach, not the render distance: `far` reads `Frame::distance`, which is `terrain_distance() * 16` (LOD Distance 128: 2048 blocks). Iris gives `far` as the chunk render distance in blocks, and packs fade terrain into the sky by it: Photon's border fog is `exp2(-8 * pow8(d / far))`, Complementary's border fog divides by `far`. So with far terrain on, the fog only starts near the far terrain's edge, and distant land stands out unfogged against the horizon (seen with Photon and a render distance of 17 with LOD Distance 128).
Author
Owner

@TobiasLogic commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6539475332 --> @TobiasLogic commented on GitHub (Oct 31, 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#1506
No description provided.