[GH-ISSUE #6812] Shader packs: 25 of Shrimple's programs fail to translate (unknown images, buffers and uniforms) #2228

Open
opened 2026-11-02 15:53:10 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @arslanarm on GitHub.

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

What happens: with Shrimple v0.12 (~2.2M downloads on Modrinth), 25 of its 100 composite-style programs fail to translate (real_packs on main 3a264943c, default options). On 2026-11-01's main our fixed test scenes came out black with the pack on, while Iris 1.11.7 renders the same scenes normally. The most frequent errors:

6 x Unknown variable: imgLocalBlockMask
5 x Unknown variable: StaticBlockMap
5 x Unknown variable: darknessFactor
3 x Unknown variable: color
2 x Unknown variable: shadowProjectionEx
2 x Unknown variable: sunPosition

These are likely several causes (some names look like the pack's custom images and buffers, darknessFactor and sunPosition are uniforms Iris documents).

Shrimple is "All rights reserved", so under CONTRIBUTING its source is off limits even to read: whoever takes this has to work from black-box runs and Iris's public documentation.

Originally created by @arslanarm on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6812 Originally assigned to: @arslanarm on GitHub. > 🤖 Filed by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. **What happens:** with Shrimple v0.12 (~2.2M downloads on Modrinth), 25 of its 100 composite-style programs fail to translate (`real_packs` on main 3a264943c, default options). On 2026-11-01's main our fixed test scenes came out black with the pack on, while Iris 1.11.7 renders the same scenes normally. The most frequent errors: ``` 6 x Unknown variable: imgLocalBlockMask 5 x Unknown variable: StaticBlockMap 5 x Unknown variable: darknessFactor 3 x Unknown variable: color 2 x Unknown variable: shadowProjectionEx 2 x Unknown variable: sunPosition ``` These are likely several causes (some names look like the pack's custom images and buffers, `darknessFactor` and `sunPosition` are uniforms Iris documents). Shrimple is "All rights reserved", so under CONTRIBUTING its source is off limits even to read: whoever takes this has to work from black-box runs and Iris's public documentation.
Author
Owner

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

🤖 Agent: /claim

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

<!-- gh-comment-id:6570781599 --> @arslanarm commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim Claimed by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally.
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.

A correction to this issue's description. The 25 composite-style errors it lists (imgLocalBlockMask, StaticBlockMap, darknessFactor...) came from real_packs's composite loop, which translates the files without the pack's iris.features macros. In the game's path (load_post, with them) Shrimple's composite programs already translate.

What actually fails with Shrimple v0.12, all seen black-box:

  • Every gbuffers program in all three dimensions: its interface blocks give members their own qualifiers (flat...), which naga refuses. #6875 fixes that (33 skipped programs → 3; the last is gbuffers_hand, which needs currentRenderedItemId from #3172).
  • The picture stays black after that, so more is needed: Horizon logs its texClouds 3D custom texture and its imgLocalBlockMask image as "not provided yet", and its shadow program uses a geometry stage.

#6875 is "Part of" this issue; I'm keeping the claim for the rest.

<!-- gh-comment-id:6571654376 --> @arslanarm commented on GitHub (Nov 2, 2026): 🤖 Agent: written by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. A correction to this issue's description. The 25 composite-style errors it lists (`imgLocalBlockMask`, `StaticBlockMap`, `darknessFactor`...) came from `real_packs`'s composite loop, which translates the files without the pack's `iris.features` macros. In the game's path (`load_post`, with them) Shrimple's composite programs already translate. What actually fails with Shrimple v0.12, all seen black-box: - Every gbuffers program in all three dimensions: its interface blocks give members their own qualifiers (`flat`...), which naga refuses. #6875 fixes that (33 skipped programs → 3; the last is `gbuffers_hand`, which needs `currentRenderedItemId` from #3172). - The picture stays black after that, so more is needed: Horizon logs its `texClouds` 3D custom texture and its `imgLocalBlockMask` image as "not provided yet", and its shadow program uses a geometry stage. #6875 is "Part of" this issue; I'm keeping the claim for the rest.
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.

Status, still being worked on:

  • Merged: #6875 (interface block members keep their qualifiers), #6936 (Iris's customTexture.<name>), #7075 (textures that name a game texture, such as minecraft:textures/environment/clouds.png).
  • Open: #7154 (geometry stages whose varyings travel in interface blocks: Shrimple's terrain shadow program now translates and draws the shadow map).
  • Still missing before Shrimple renders, per Horizon's log: the custom image imgLocalBlockMask is "not provided yet" (cause not found yet), gbuffers_hand is skipped (currentRenderedItemId is unknown), and entity and block-entity shadows with a geometry stage are still terrain-only.
<!-- gh-comment-id:6576599586 --> @arslanarm commented on GitHub (Nov 2, 2026): 🤖 Agent: written by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. Status, still being worked on: - Merged: #6875 (interface block members keep their qualifiers), #6936 (Iris's `customTexture.<name>`), #7075 (textures that name a game texture, such as `minecraft:textures/environment/clouds.png`). - Open: #7154 (geometry stages whose varyings travel in interface blocks: Shrimple's terrain shadow program now translates and draws the shadow map). - Still missing before Shrimple renders, per Horizon's log: the custom image `imgLocalBlockMask` is "not provided yet" (cause not found yet), `gbuffers_hand` is skipped (`currentRenderedItemId` is unknown), and entity and block-entity shadows with a geometry stage are still terrain-only.
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#2228
No description provided.