[GH-ISSUE #7205] Shader packs: the BLOCK_EMISSION_ATTRIBUTE feature is not supported (at_midBlock.w is always 0) #3174

Closed
opened 2026-11-03 04:06:26 +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/7205

Originally assigned to: @arslanarm on GitHub.

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

What happens: RenderPearl v2.7.2 and Visual Vibrance v0.3.5a list BLOCK_EMISSION_ATTRIBUTE in iris.features.required. Horizon doesn't have that feature (FEATURES in crates/horizon-shaders/src/macros.rs), so on main 0ac35dac7 the game logs "shader pack …: the pack requires BLOCK_EMISSION_ATTRIBUTE, which is not supported yet" for both packs, in every dimension, and real_packs prints the same note. IRIS_FEATURE_BLOCK_EMISSION_ATTRIBUTE is never defined for iris.features.optional either.

In the game (a fast build of main 6d91fa694, one overworld scene, a fresh game home): both packs load with this warning, then crash the game on the first frame for an unrelated reason, a storage buffer smaller than its shader expects (#7178). So their pictures can't be compared with Iris 1.11.7 until that is fixed.

The feature (Iris ShaderDoc, "Feature Flags": "BLOCK_EMISSION_ATTRIBUTE (recommended, but not required for Block Emission: at_midBlock.w)"): a terrain vertex's at_midBlock.w carries its block's light emission. at_midBlock.xyz is the offset to the block's centre in 1/64 m (OptiFine shaders.txt). Horizon fills at_midBlock.xyz for terrain (gfx/pack_atlas.rs), but .w is always 0.0.

Expected: Horizon reports BLOCK_EMISSION_ATTRIBUTE as supported, and terrain's at_midBlock.w holds what Iris 1.11.7 puts there. The value's scale (0–15 or otherwise) and which blocks carry it (for example lit furnaces, redstone torches, blocks with states that change their light) still need checking against Iris with a probe pack of our own.

Originally created by @arslanarm on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7205 Originally assigned to: @arslanarm on GitHub. > 🤖 Filed by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. **What happens:** RenderPearl v2.7.2 and Visual Vibrance v0.3.5a list `BLOCK_EMISSION_ATTRIBUTE` in `iris.features.required`. Horizon doesn't have that feature (`FEATURES` in `crates/horizon-shaders/src/macros.rs`), so on main 0ac35dac7 the game logs "shader pack …: the pack requires `BLOCK_EMISSION_ATTRIBUTE`, which is not supported yet" for both packs, in every dimension, and `real_packs` prints the same note. `IRIS_FEATURE_BLOCK_EMISSION_ATTRIBUTE` is never defined for `iris.features.optional` either. **In the game** (a fast build of main 6d91fa694, one overworld scene, a fresh game home): both packs load with this warning, then crash the game on the first frame for an unrelated reason, a storage buffer smaller than its shader expects (#7178). So their pictures can't be compared with Iris 1.11.7 until that is fixed. **The feature** (Iris ShaderDoc, "Feature Flags": "`BLOCK_EMISSION_ATTRIBUTE` (recommended, but not required for Block Emission: `at_midBlock.w`)"): a terrain vertex's `at_midBlock.w` carries its block's light emission. `at_midBlock.xyz` is the offset to the block's centre in 1/64 m (OptiFine shaders.txt). Horizon fills `at_midBlock.xyz` for terrain (`gfx/pack_atlas.rs`), but `.w` is always `0.0`. **Expected:** Horizon reports `BLOCK_EMISSION_ATTRIBUTE` as supported, and terrain's `at_midBlock.w` holds what Iris 1.11.7 puts there. The value's scale (0–15 or otherwise) and which blocks carry it (for example lit furnaces, redstone torches, blocks with states that change their light) still need checking against Iris with a probe pack of our own.
Author
Owner

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

🤖 Agent: /claim

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