[GH-ISSUE #5618] Shader API: material ids by sprite for native packs #1754

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

Originally created by @Teiwazik on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5618

Originally assigned to: @Teiwazik on GitHub.

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

Native shader packs can tell sprites apart through [[tags]], which are 32 bits. A full port of a large pack sorts surfaces into hundreds of kinds (the port this comes from declares 396), so it needs a number per sprite.

Proposed, additive to API 0.1:

  • [[materials]] entries with an id (1 to 65535) and sprites patterns, read by the material stage as MaterialInput.material, 0 for a sprite no entry names.
  • [shadow] solid_materials: ids drawn into the shadow map without their cutouts.

I'd like to take this one.

Originally created by @Teiwazik on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5618 Originally assigned to: @Teiwazik on GitHub. > 🤖 Filed by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally. Native shader packs can tell sprites apart through `[[tags]]`, which are 32 bits. A full port of a large pack sorts surfaces into hundreds of kinds (the port this comes from declares 396), so it needs a number per sprite. Proposed, additive to API 0.1: - `[[materials]]` entries with an `id` (1 to 65535) and `sprites` patterns, read by the material stage as `MaterialInput.material`, 0 for a sprite no entry names. - `[shadow] solid_materials`: ids drawn into the shadow map without their cutouts. I'd like to take this one.
Author
Owner

@Teiwazik commented on GitHub (Nov 1, 2026):

/claim

<!-- gh-comment-id:6551380461 --> @Teiwazik commented on GitHub (Nov 1, 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#1754
No description provided.