Iris DH First Pass Sync
Synchronizes the first Distant Horizons render-pass selection with the active Iris shader pipeline on the exact supported Minecraft 1.21.1 stack.
The problem
When the transparent-rendering flag starts disabled, Distant Horizons can select a combined opaque-and-transparent pass before Iris requests separate passes. Iris can then report an unexpected combined pass on that first frame.
Why it happens
Distant Horizons 3.3.3 reads its transparency flag and updates the render parameters before firing its before-render event. The supported Iris event handler requests separation later in that event. That request cannot change the pass already selected for the current call.
Scope of the fix
Immediately before the initial flag read, the addon checks the active Iris pipeline. For the main pass, it enables separation only when an active shader pack and Iris's DH bridge request the override and the flag is not already enabled.
The original Iris event handler, shader-pack selection and Distant Horizons render path remain in place. Deferred-layer calls do not trigger the new early synchronization. The addon does not replace a renderer, change LOD generation, adjust terrain detail or alter server rules. It is not a fix for all shader errors, native driver crashes or missing geometry.
Compatibility
- Minecraft 1.21.1, Java 21
- NeoForge 21.1.235 exactly
- Distant Horizons 3.3.3-1.21.1
- Iris 1.8.14-beta.1+mc1.21.1, NeoForge build
- Client only; dedicated servers do not need the addon
Iris and Distant Horizons remain optional installations. Both exact supported graphics mods, with their own dependencies, must be present for this correction to apply. The addon checks the complete fingerprints of DH's ClientApi and Iris's before-render event handler. Missing Iris, dedicated-server loading and changed target fingerprints were checked to skip the Mixin. Other builds are not claimed compatible; the guard can leave them unchanged.
Keep one copy of mod ID steamsteel_dh_pass_sync. Do not install it alongside the original Steam & Steel repair using that same ID. SteamSteelCore, Companion, SSLogs, Create and Iris Bonk are not required by this standalone addon.
From Steam & Steel
The correction originated while maintaining Steam & Steel SMP, our custom Minecraft 1.21.1 NeoForge server modpack. It was separated from a client-render investigation into this independent addon. Delivery of the pack's original repair does not establish gameplay acceptance of the separately packaged public version.
Acknowledgements
Iris and Distant Horizons remain the work of their respective development teams. See Iris and Distant Horizons.
This is an independent community addon. No upstream classes, libraries, shader packs or artwork are bundled.
Beta / Feedback
This is a beta release. Actual Sponge Mixin application was checked against the exact native DH/Iris targets, including dedicated-server exclusion, missing-Iris handling and valid but changed DH and Iris class fingerprints. Instructions in 20 unrelated native DH methods were preserved; only the intended reader method changed. Computed stack-map frames may differ.
The original native pass-selection instruction range and the actual merged handler were executed in a minimal test shell using the real DH pass enum and controlled API hosts: 16 cases per mode reproduced one original first-pass mismatch and none after correction. Deferred branches and repeated-call idempotence were checked. Separate guard tests cover inactive packs, missing pipelines and bridges, and an override that is not requested.
These checks do not execute the complete render method, real Iris event loop or graphics driver. Full modloader startup, shader presentation, world/resource transitions and gameplay acceptance remain unverified stages. Download counts do not establish any of those results.
If you encounter a crash, an error or unexpected behaviour, please leave a comment with your Minecraft, NeoForge, Iris, Distant Horizons and addon versions, shader-pack name and steps to reproduce the problem. Remove private information from attached logs. We will investigate reported bugs and work on fixes.
License
Addon code and original project artwork are licensed under BSD 3-Clause. Copyright (c) 2026, DanielBasov (Steam & Steel). Forks, fixes and redistribution are permitted; retain the author attribution, license conditions and disclaimer in source distributions and in the materials accompanying binary distributions. A fork may not imply endorsement by the original author.
The icon is original matte pixel artwork rendered through the saved V3 pipeline: terrain layers, a separate striped pass and a brass timing arrow. The original mods retain their own licenses. No upstream artwork is redistributed.