[GH-ISSUE #6881] Shader packs: IRIS_VERSION, IRIS_TAG_SUPPORT, MC_MIPMAP_LEVEL, MC_GL_VENDOR_* and other macros Iris defines are missing #2237

Closed
opened 2026-11-02 15:53:14 +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/6881

Originally assigned to: @arslanarm on GitHub.

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

What happens: packs choose their code paths with the standard macros, and Horizon's set (Macros::standard() in crates/horizon-shaders/src/macros.rs) differs from what Iris defines. #6811 was one case (MC_NORMAL_MAP, fixed by #6874); these are the others found.

How it was measured (black box, no Iris or pack code read): a probe pack written for this, whose final pass paints one green or red stripe per #ifdef/#if test, run in Iris 1.11.7 + Sodium 0.9.2 on Minecraft 26.3 (Linux, NVIDIA RTX GPU, no resource pack), compared with Horizon's Macros::standard() on main 4910da922.

Macro Iris 1.11.7 Horizon
IRIS_VERSION defined, == 11107 not defined
IRIS_TAG_SUPPORT defined, >= 2 not defined
IRIS_HAS_TRANSLUCENCY_SORTING defined not defined
MC_MIPMAP_LEVEL defined, == 4 not defined
MC_GL_VENDOR_NVIDIA defined (the GPU's vendor) no MC_GL_VENDOR_*
MC_GL_RENDERER_OTHER defined (MC_GL_RENDERER_GEFORCE not) no MC_GL_RENDERER_*
MC_GL_VERSION, MC_GLSL_VERSION both < 460 both 460

Same in both: IS_IRIS, MC_VERSION == 260300, MC_RENDER_QUALITY, MC_SHADOW_QUALITY, MAX_COLOR_BUFFERS, MC_NORMAL_MAP/MC_SPECULAR_MAP (with #6874). Not defined in either: IRIS_HAS_CONNECTED_TEXTURES, MC_ANISOTROPIC_FILTERING, MC_FXAA_LEVEL, MC_OLD_LIGHTING, MC_OLD_HAND_LIGHT, MC_TEXTURE_FORMAT_LAB_PBR, DISTANT_HORIZONS.

macros.rs already says "the GPU vendor and family arrive with the renderer", but nothing defines MC_GL_VENDOR_*/MC_GL_RENDERER_* today.

Expected: Horizon defines what Iris defines where it has the matching behaviour. Each one can switch a pack to code that needs features Horizon may not have yet (an IRIS_VERSION check in particular), so the change should be measured pack by pack (translation over the most-downloaded packs, and pictures), not just added. The exact GL/GLSL version values Iris reports still need a finer probe.

Originally created by @arslanarm on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6881 Originally assigned to: @arslanarm on GitHub. > 🤖 Filed by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. **What happens:** packs choose their code paths with the standard macros, and Horizon's set (`Macros::standard()` in `crates/horizon-shaders/src/macros.rs`) differs from what Iris defines. #6811 was one case (`MC_NORMAL_MAP`, fixed by #6874); these are the others found. **How it was measured** (black box, no Iris or pack code read): a probe pack written for this, whose `final` pass paints one green or red stripe per `#ifdef`/`#if` test, run in Iris 1.11.7 + Sodium 0.9.2 on Minecraft 26.3 (Linux, NVIDIA RTX GPU, no resource pack), compared with Horizon's `Macros::standard()` on main 4910da922. | Macro | Iris 1.11.7 | Horizon | |---|---|---| | `IRIS_VERSION` | defined, `== 11107` | not defined | | `IRIS_TAG_SUPPORT` | defined, `>= 2` | not defined | | `IRIS_HAS_TRANSLUCENCY_SORTING` | defined | not defined | | `MC_MIPMAP_LEVEL` | defined, `== 4` | not defined | | `MC_GL_VENDOR_NVIDIA` | defined (the GPU's vendor) | no `MC_GL_VENDOR_*` | | `MC_GL_RENDERER_OTHER` | defined (`MC_GL_RENDERER_GEFORCE` not) | no `MC_GL_RENDERER_*` | | `MC_GL_VERSION`, `MC_GLSL_VERSION` | both `< 460` | both `460` | Same in both: `IS_IRIS`, `MC_VERSION == 260300`, `MC_RENDER_QUALITY`, `MC_SHADOW_QUALITY`, `MAX_COLOR_BUFFERS`, `MC_NORMAL_MAP`/`MC_SPECULAR_MAP` (with #6874). Not defined in either: `IRIS_HAS_CONNECTED_TEXTURES`, `MC_ANISOTROPIC_FILTERING`, `MC_FXAA_LEVEL`, `MC_OLD_LIGHTING`, `MC_OLD_HAND_LIGHT`, `MC_TEXTURE_FORMAT_LAB_PBR`, `DISTANT_HORIZONS`. `macros.rs` already says "the GPU vendor and family arrive with the renderer", but nothing defines `MC_GL_VENDOR_*`/`MC_GL_RENDERER_*` today. Expected: Horizon defines what Iris defines where it has the matching behaviour. Each one can switch a pack to code that needs features Horizon may not have yet (an `IRIS_VERSION` check in particular), so the change should be measured pack by pack (translation over the most-downloaded packs, and pictures), not just added. The exact GL/GLSL version values Iris reports still need a finer probe.
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:6571882322 --> @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.
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#2237
No description provided.