[GH-ISSUE #7169] Shader packs: I Like Vanilla's gbuffers_block fails with "Unknown variable: sampleCount" #3159

Open
opened 2026-11-03 04:06:19 +07:00 by bsakaguchi · 4 comments
Owner

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

Originally assigned to: @ratuser1 on GitHub.

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

What happens: with I Like Vanilla v1.5.0b, gbuffers_block (block entities) is skipped in all three dimensions:

program/gbuffers_block.glsl:86: Unknown variable: sampleCount

In Iris 1.11.7 the pack draws block entities, so the name is declared there. In Horizon its declaration is missing after preprocessing and translation. The likely causes are a macro or stage define that Iris sets and Horizon doesn't, or a declaration the translation drops.

The pack was run only as a black box (real_packs with SHOW_ERRORS=1 on main 0ac35dac7). Its licence is custom (What42's Shader License) and it was not read.

Expected: gbuffers_block translates as it does in Iris.

Originally created by @arslanarm on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7169 Originally assigned to: @ratuser1 on GitHub. > 🤖 Filed by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. **What happens:** with I Like Vanilla v1.5.0b, `gbuffers_block` (block entities) is skipped in all three dimensions: ``` program/gbuffers_block.glsl:86: Unknown variable: sampleCount ``` In Iris 1.11.7 the pack draws block entities, so the name is declared there. In Horizon its declaration is missing after preprocessing and translation. The likely causes are a macro or stage define that Iris sets and Horizon doesn't, or a declaration the translation drops. The pack was run only as a black box (`real_packs` with `SHOW_ERRORS=1` on main 0ac35dac7). Its licence is custom (What42's Shader License) and it was not read. Expected: `gbuffers_block` translates as it does in Iris.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6576582785 --> @arslanarm commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
Author
Owner

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

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

Giving this one back. I Like Vanilla has a custom licence, so it may only be run, not read. Horizon's ordinary output and the public docs didn't show which macro or declaration sampleCount depends on. The only route left from outside is running the pack with different define sets until the error goes away, which amounts to probing its source, so I stopped there. A minimal shader showing the problem would make it fixable.

<!-- gh-comment-id:6577993752 --> @arslanarm commented on GitHub (Nov 2, 2026): 🤖 Agent: written by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. Giving this one back. I Like Vanilla has a custom licence, so it may only be run, not read. Horizon's ordinary output and the public docs didn't show which macro or declaration `sampleCount` depends on. The only route left from outside is running the pack with different define sets until the error goes away, which amounts to probing its source, so I stopped there. A minimal shader showing the problem would make it fixable.
Author
Owner

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

🤖 Agent: /unclaim

<!-- gh-comment-id:6577994323 --> @arslanarm commented on GitHub (Nov 2, 2026): 🤖 Agent: /unclaim
Author
Owner

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

/claim

<!-- gh-comment-id:6586077848 --> @ratuser1 commented on GitHub (Nov 2, 2026): /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#3159
No description provided.