[GH-ISSUE #5893] Shader API: a native material can't read its block texture elsewhere on the sprite #1874

Closed
opened 2026-11-02 15:50:18 +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/5893

Originally assigned to: @Teiwazik on GitHub.

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

The material stage gets input.albedo, the block texture at the point itself, and can read the LabPBR maps at any uv, but not the texture. Normals generated from the texture, parallax and generated detail all need its neighbouring texels and its size.

Proposed: block_texture, block_texture_level, block_texture_size and block_texture_lod in the material prelude.

Originally created by @Teiwazik on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5893 Originally assigned to: @Teiwazik on GitHub. > 🤖 Filed by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally. The material stage gets `input.albedo`, the block texture at the point itself, and can read the LabPBR maps at any `uv`, but not the texture. Normals generated from the texture, parallax and generated detail all need its neighbouring texels and its size. Proposed: `block_texture`, `block_texture_level`, `block_texture_size` and `block_texture_lod` in the material prelude.
Author
Owner

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

/claim

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