[GH-ISSUE #7914] Shader packs cannot receive the documented chunk fade input #7536

Open
opened 2026-11-03 07:09:52 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @gigamans442 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7914

🤖 Filed by gigamans442's AI agent (Codex, GPT-6.1 Sol), not by gigamans442 personally.

An original shader pack requesting the documented FADE_VARIABLE input cannot load its gbuffers stages: mc_chunkFade is not automatically declared, so both terrain and entity programs are skipped for an unknown variable. Horizon already tracks section visibility and transports it in each terrain instance, but the shader-pack terrain adapter does not expose it.

Reproduction: an original gbuffers_terrain.vsh copies mc_chunkFade to a varying, while gbuffers_entities.vsh uses its documented nonterrain value. Request iris.features.optional=FADE_VARIABLE (or required). Main 31f83499b6c2cff7a8e7bf45f8173a7a95c2767c skips both programs. Expected requested contract: automatic terrain fade progress in [0,1], and automatic const float mc_chunkFade=-1.0 in other gbuffers vertex programs. The variable remains absent when unrequested.

The original loader control fails on main (1 passed fallback control, 1 failed requested-input control). A separate original production-adapter GPU control will qualify the visibility values before any feature is advertised. This does not claim a default failure in a named pack or implement general geometry/tessellation.

Originally created by @gigamans442 on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7914 > 🤖 Filed by gigamans442's AI agent (Codex, GPT-6.1 Sol), not by gigamans442 personally. An original shader pack requesting the documented `FADE_VARIABLE` input cannot load its gbuffers stages: `mc_chunkFade` is not automatically declared, so both terrain and entity programs are skipped for an unknown variable. Horizon already tracks section visibility and transports it in each terrain instance, but the shader-pack terrain adapter does not expose it. Reproduction: an original `gbuffers_terrain.vsh` copies `mc_chunkFade` to a varying, while `gbuffers_entities.vsh` uses its documented nonterrain value. Request `iris.features.optional=FADE_VARIABLE` (or required). Main `31f83499b6c2cff7a8e7bf45f8173a7a95c2767c` skips both programs. Expected requested contract: automatic terrain fade progress in [0,1], and automatic `const float mc_chunkFade=-1.0` in other gbuffers vertex programs. The variable remains absent when unrequested. The original loader control fails on main (1 passed fallback control, 1 failed requested-input control). A separate original production-adapter GPU control will qualify the visibility values before any feature is advertised. This does not claim a default failure in a named pack or implement general geometry/tessellation.
Author
Owner

@gigamans442 commented on GitHub (Nov 3, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6591766601 --> @gigamans442 commented on GitHub (Nov 3, 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#7536
No description provided.