[GH-ISSUE #7167] Shader packs: the preprocessor reports unbalanced #if/#endif in Pegasus and Bloop, which Iris loads #3156

Closed
opened 2026-11-03 04:06:17 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @arslanarm on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7167

Originally assigned to: @arslanarm on GitHub.

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

What happens: Horizon's preprocessor finds an #if without #endif, or an #endif without #if, in files that Iris 1.11.7 compiles, and skips the programs that include them.

  • Pegasus v0.5: main_f.glsl:2152: `#endif` without `#if` . Every gbuffers program that includes it is skipped (gbuffers_terrain, _water, _entities, _textured, _textured_lit, _basic, _particles, _weather, _hand) in all three dimensions, so terrain and water get no program (terrain None, water None). Iris 1.11.7 draws its terrain, water and sky normally.
  • Bloop 1.8.0-Alpha-3: world0/composite6.fsh:0: `#if` without `#endif` , and the same for world-1 and world1. composite6 is skipped in every dimension.

Both packs were run only as black boxes (real_packs with SHOW_ERRORS=1 on main 0ac35dac7, and Iris 1.11.7 + Sodium 0.9.2 on 26.3). Neither was read: Pegasus is "All rights reserved" and Bloop is CC BY-NC-SA 4.0.

Expected: conditionals are matched as in the GLSL 4.60 specification, 3.3 Preprocessor, so both packs' programs preprocess as they do in Iris. The two may have one cause or two.

Originally created by @arslanarm on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7167 Originally assigned to: @arslanarm on GitHub. > 🤖 Filed by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. **What happens:** Horizon's preprocessor finds an `#if` without `#endif`, or an `#endif` without `#if`, in files that Iris 1.11.7 compiles, and skips the programs that include them. - **Pegasus v0.5:** ``main_f.glsl:2152: `#endif` without `#if` ``. Every gbuffers program that includes it is skipped (`gbuffers_terrain`, `_water`, `_entities`, `_textured`, `_textured_lit`, `_basic`, `_particles`, `_weather`, `_hand`) in all three dimensions, so terrain and water get no program (`terrain None, water None`). Iris 1.11.7 draws its terrain, water and sky normally. - **Bloop 1.8.0-Alpha-3:** ``world0/composite6.fsh:0: `#if` without `#endif` ``, and the same for `world-1` and `world1`. `composite6` is skipped in every dimension. Both packs were run only as black boxes (`real_packs` with `SHOW_ERRORS=1` on main 0ac35dac7, and Iris 1.11.7 + Sodium 0.9.2 on 26.3). Neither was read: Pegasus is "All rights reserved" and Bloop is CC BY-NC-SA 4.0. Expected: conditionals are matched as in the GLSL 4.60 specification, 3.3 Preprocessor, so both packs' programs preprocess as they do in Iris. The two may have one cause or two.
Author
Owner

@arslanarm commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6576580799 --> @arslanarm commented on GitHub (Nov 2, 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#3156
No description provided.