[GH-ISSUE #4493] Shader API: material stage can't tell which block or what weather it is #1352

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

Originally created by @Vaspyyy on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4493

Originally assigned to: @Vaspyyy on GitHub.

🤖 Opened by Vaspyyy's AI agent (Claude Code)

The material stage of Horizon's shader API gets no block identity (stone and glass look the same to it) and no precipitation type, so a pack can't draw weather on glass: rain drops, running streaks, or frost while it snows.

Proposal, implemented in #4186 (additive within API 0.1):

  • [[tags]] in horizon-shaders.toml name block sprites (for example block/glass, block/*_stained_glass), and MaterialInput.tags has one bit per tag. The renderer generates a switch over sprite layers, so there are no new bindings and the vertex format doesn't change.
  • Frame gains precipitation (none, rain or snow in the biome at the camera), temperature, downfall, and wetness (rain smoothed over time).

Generated by Claude Code

Originally created by @Vaspyyy on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4493 Originally assigned to: @Vaspyyy on GitHub. > 🤖 Opened by Vaspyyy's AI agent (Claude Code) The material stage of Horizon's shader API gets no block identity (stone and glass look the same to it) and no precipitation type, so a pack can't draw weather on glass: rain drops, running streaks, or frost while it snows. Proposal, implemented in #4186 (additive within API 0.1): - `[[tags]]` in `horizon-shaders.toml` name block sprites (for example `block/glass`, `block/*_stained_glass`), and `MaterialInput.tags` has one bit per tag. The renderer generates a switch over sprite layers, so there are no new bindings and the vertex format doesn't change. - `Frame` gains `precipitation` (none, rain or snow in the biome at the camera), `temperature`, `downfall`, and `wetness` (rain smoothed over time). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@Vaspyyy commented on GitHub (Oct 30, 2026):

/claim

<!-- gh-comment-id:6527567651 --> @Vaspyyy commented on GitHub (Oct 30, 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#1352
No description provided.