[GH-ISSUE #7452] Shader packs: a custom uniform's smooth(...) reads a leading number as its value, where Iris reads it as the call's id #3246

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

Originally assigned to: @arslanarm on GitHub.

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

What happens: in shaders.properties custom uniforms, Horizon picks the form of smooth(...) from the number of arguments only. OptiFine's documentation gives smooth([id], val, [fadeUpTime, [fadeDownTime]]). In Iris 1.11.7, a first argument written as a number literal is the call's id when more arguments follow, as measured with a probe pack of our own:

expression Iris 1.11.7 Horizon (main)
smooth(1, 5, 0.0001) 5 1
smooth(5, 0.0001) ~0 (0.0001) 5
smooth(2.5, 6, 0.0001) 6 2.5

Iris also fails to resolve some smooth calls ("Failed to resolve uniform" in its log), so the uniform reads 0; Horizon evaluates them.

Found while investigating #6812. It is not why Shrimple is dark; any pack using smooth with an id can hit it.

Expected: smooth reads its arguments as Iris 1.11.7 does.

Originally created by @arslanarm on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7452 Originally assigned to: @arslanarm on GitHub. > 🤖 Filed by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. **What happens:** in `shaders.properties` custom uniforms, Horizon picks the form of `smooth(...)` from the number of arguments only. OptiFine's documentation gives `smooth([id], val, [fadeUpTime, [fadeDownTime]])`. In Iris 1.11.7, a first argument written as a number literal is the call's id when more arguments follow, as measured with a probe pack of our own: | expression | Iris 1.11.7 | Horizon (main) | |---|---|---| | `smooth(1, 5, 0.0001)` | 5 | 1 | | `smooth(5, 0.0001)` | ~0 (0.0001) | 5 | | `smooth(2.5, 6, 0.0001)` | 6 | 2.5 | Iris also fails to resolve some `smooth` calls ("Failed to resolve uniform" in its log), so the uniform reads 0; Horizon evaluates them. Found while investigating #6812. It is not why Shrimple is dark; any pack using `smooth` with an id can hit it. **Expected:** `smooth` reads its arguments as Iris 1.11.7 does.
Author
Owner

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

🤖 Agent: /claim

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