[GH-ISSUE #6233] Proposal: a shader-pack scene suite (fixed scenes, Horizon vs Iris reference pictures) under tools/ #2026

Open
opened 2026-11-02 15:51:27 +07:00 by bsakaguchi · 0 comments
Owner

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

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

While fixing the shaders/ loader (#6177, #6210, #6211, #6212) we built a scene suite that photographs a pack in the same 16 places in Horizon and in Java 26.3 with Iris, and compares the pictures. It found things the existing checks don't: real_packs tells whether a program translates, the render parity harnesses compare data with Java oracles, and neither shows whether a pack looks right. Before turning it into pull requests, we'd like to know whether you want it in the repository, and in particular the Iris part.

What it is

  • A scene file: a seed and 16 views, each a dimension, position, yaw/pitch, time, weather and vanilla setup commands. Ground at noon, sunset, night and in rain; bird's-eye; mobs (summon with NoAI); a dark cave and the same cave lit with setblock torches; a lush cave; under water; the five Nether biomes; the End's main island. Plus pinned options (renderDistance, gamma, ao, mipmapLevels, clouds...) and gamerules (advance_time, advance_weather, spawn_mobs false, random_tick_speed 0).
  • Horizon runner: a Python driver over horizon-ctl, using throwaway homes as CLAUDE.md asks and an Xvfb display of its own. It loads one shared world, applies each scene and saves a PNG. After every shot it reads the camera back (state) and flags any picture whose position, angle or open screen differs from the scene's.
  • Iris reference runner: Java 26.3 from the player's own install, with Fabric, Sodium and Iris (pinned released jars, sha512-checked, run as black boxes; their source never read). A small client mod of our own reads the same scene file and takes the same pictures.
  • Comparison: side-by-side sheets per pack, plus a ranked report. Scores use 64×36 downscales, so animated water and clouds count for little. It flags black, washed-out and flat frames.

Both games load one shared world. Two fresh Java worlds on the same seed place trees differently (chunk-border features depend on thread timing), so comparing fresh worlds measured forests, not shaders.

What it showed

Vanilla Horizon vs vanilla Java (no pack) differs by about 5.4 on average: the noise floor, from clouds and animation. Packs on main plus the four PRs above:

Pack Mean difference
Complementary Reimagined / Unbound 6.7 / 6.3
BSL 6.1
Photon 6.6
Solas 8.9
Rethinking Voxels 7.6
MakeUp / Mellow 4.2 / 3.7
Super Duper Vanilla, Pastel, Bliss 15–25
Noble, Shrimple, Bloop and a few others still clearly wrong

Problems it led to:

  • Complementary without clouds (fixed by #5693).
  • The sky pass not binding SSBOs (Noble crashed): #6210.
  • The translator's if (true) discard swallowing the pack's else: #6177.
  • fastpbr, kappa and nostalgia hanging the GPU (NVIDIA Xid 109) and the game panicking in GpuTimer::collect.

Outside shaders, it also found that worlds saved by Java 26.3 load with sky light 15 underground (caves fully lit).

What we'd propose

Two or three pull requests under tools/, each under ~500 lines, using lab.py's paths and the cargo target:

  1. The scene file and the Horizon runner, with unit tests for the pure parts (spec parsing, the camera check).
  2. The comparison tool.
  3. The Iris reference runner, separate so it can be declined on its own.

Nothing from Mojang, no packs, worlds or pictures would be committed. Packs would come from a folder you point it at, like real_packs's HORIZON_TEST_SHADER_PACKS, and the world would be generated on first use. It needs a GPU, a Minecraft install and packs, so it would be a manual developer tool, not a CI job.

Questions: do you want this in the repository at all? And is a harness that runs released Iris jars as a black box to take reference pictures acceptable, given the clean-room history (#1561)? If not, we'd contribute the Horizon side only. Sample comparison sheets are available on request.

Originally created by @arslanarm on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6233 > 🤖 Filed by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. While fixing the `shaders/` loader (#6177, #6210, #6211, #6212) we built a scene suite that photographs a pack in the same 16 places in Horizon and in Java 26.3 with Iris, and compares the pictures. It found things the existing checks don't: `real_packs` tells whether a program translates, the render parity harnesses compare data with Java oracles, and neither shows whether a pack *looks* right. Before turning it into pull requests, we'd like to know whether you want it in the repository, and in particular the Iris part. ## What it is - **A scene file**: a seed and 16 views, each a dimension, position, yaw/pitch, time, weather and vanilla setup commands. Ground at noon, sunset, night and in rain; bird's-eye; mobs (`summon` with NoAI); a dark cave and the same cave lit with `setblock` torches; a lush cave; under water; the five Nether biomes; the End's main island. Plus pinned options (`renderDistance`, `gamma`, `ao`, `mipmapLevels`, clouds...) and gamerules (`advance_time`, `advance_weather`, `spawn_mobs` false, `random_tick_speed` 0). - **Horizon runner**: a Python driver over `horizon-ctl`, using throwaway homes as CLAUDE.md asks and an Xvfb display of its own. It loads one shared world, applies each scene and saves a PNG. After every shot it reads the camera back (`state`) and flags any picture whose position, angle or open screen differs from the scene's. - **Iris reference runner**: Java 26.3 from the player's own install, with Fabric, Sodium and Iris (pinned released jars, sha512-checked, run as black boxes; their source never read). A small client mod of our own reads the same scene file and takes the same pictures. - **Comparison**: side-by-side sheets per pack, plus a ranked report. Scores use 64×36 downscales, so animated water and clouds count for little. It flags black, washed-out and flat frames. Both games load **one shared world**. Two fresh Java worlds on the same seed place trees differently (chunk-border features depend on thread timing), so comparing fresh worlds measured forests, not shaders. ## What it showed Vanilla Horizon vs vanilla Java (no pack) differs by about 5.4 on average: the noise floor, from clouds and animation. Packs on main plus the four PRs above: | Pack | Mean difference | |---|---| | Complementary Reimagined / Unbound | 6.7 / 6.3 | | BSL | 6.1 | | Photon | 6.6 | | Solas | 8.9 | | Rethinking Voxels | 7.6 | | MakeUp / Mellow | 4.2 / 3.7 | | Super Duper Vanilla, Pastel, Bliss | 15–25 | | Noble, Shrimple, Bloop and a few others | still clearly wrong | Problems it led to: - Complementary without clouds (fixed by #5693). - The sky pass not binding SSBOs (Noble crashed): #6210. - The translator's `if (true) discard` swallowing the pack's `else`: #6177. - fastpbr, kappa and nostalgia hanging the GPU (NVIDIA Xid 109) and the game panicking in `GpuTimer::collect`. Outside shaders, it also found that worlds saved by Java 26.3 load with sky light 15 underground (caves fully lit). ## What we'd propose Two or three pull requests under `tools/`, each under ~500 lines, using `lab.py`'s paths and the cargo target: 1. The scene file and the Horizon runner, with unit tests for the pure parts (spec parsing, the camera check). 2. The comparison tool. 3. The Iris reference runner, separate so it can be declined on its own. Nothing from Mojang, no packs, worlds or pictures would be committed. Packs would come from a folder you point it at, like `real_packs`'s `HORIZON_TEST_SHADER_PACKS`, and the world would be generated on first use. It needs a GPU, a Minecraft install and packs, so it would be a manual developer tool, not a CI job. **Questions:** do you want this in the repository at all? And is a harness that runs released Iris jars as a black box to take reference pictures acceptable, given the clean-room history (#1561)? If not, we'd contribute the Horizon side only. Sample comparison sheets are available on request.
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#2026
No description provided.