[PR #6692] [MERGED] Shader packs: route destroy-stage overlays through gbuffers_damagedblock #7036

Closed
opened 2026-11-03 06:32:29 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6692
Author: @gigamans442
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/shader-damaged-block-20261101


📝 Commits (2)

  • 667dd79 Shader packs: route destroy-stage overlays through gbuffers_damagedblock
  • d454f23 Use fixed-size slice chunks in the crack projection helper

📊 Changes

4 files changed (+140 additions, -9 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx.rs (+6 -0)
📝 crates/horizon-client-render/src/gfx/pack_entities.rs (+80 -5)
📝 crates/horizon-client-render/src/gfx/pack_post.rs (+37 -4)
📝 crates/horizon-shaders/src/post.rs (+17 -0)

📄 Description

🤖 Opened by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally.

What and why

Fixes #6680.

Load a dedicated gbuffers_damagedblock program, select it for DESTROY runs, project the crack sprite coordinates and use decal depth/blend state without depth writes. Keep the existing fallback when the pack has no applicable program.

This isolated patch is based on upstream 0454e97e32b528873dd56d04f0669f57aaa34fbe: +140 / -9, including original regressions. It excludes the personalized instance's theme, mods, game assets, saved data, diagnostic experiments and unrelated shader changes.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Not vanilla gameplay: this fixes Horizon's standard-pack host/translator contract. Expected values come from the existing Horizon MIT implementation, the written shader-format contract and original synthetic tests, not a third-party renderer implementation.

Other projects' code

No Iris, OptiFine or Sodium implementation code or shader-pack rendering algorithm is copied/adapted in this patch. It changes Horizon's own host/compiler code and uses original synthetic fixtures. Earlier personal compatibility research did inspect installed shader-pack source; that history is disclosed and this contribution is not described as a clean-room effort. No private packs, worlds, photos or video are attached.

Regression evidence

The original stage-routing regression fails at runtime on unchanged upstream. The synthetic cube-face GPU control produces no shader-specific magenta pixels there; the fixed route must visibly contribute that test color. Projection and fallback controls are included. The user accepted the complete private build, which is not presented as independent acceptance of this branch or every block model.

Self-check

Checked head: d454f23ff6778fa265bc08e509539fee46b616b5.

pr_ready (tools/pr_ready.py --base upstream/main on homepc, against upstream/main at 0454e97e3, 2 min 39 s)

Check Result
Scope ✅ 4 files, +140 −9
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 598 passed (43 s)
rustfmt ✅ (9 s)
clippy ✅ (39 s)
tests: horizon-client-render, horizon-shaders ❌ 981 passed, 2 failed (1 min 7 s)
doc tests ✅ 0 passed (1 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Focused branch regressions: 3 passed; 0 failed; 0 ignored; 0 measured; 1013 filtered out; finished in 0.00s.

The touched shader crate was also run separately after Cargo stopped at the known renderer failures: 119 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s.

Isolated GPU outcomes (this branch only, unchanged upstream renderer otherwise; RGB rounding tolerance ±1):

  • damage: 1984 changed pixels and 1984 shader-specific magenta pixels.

Known unchanged-upstream failures: the two frame-generation image-quality assertions above also fail on the untouched base on this machine (979 passed, 2 failed, 33 ignored). They remain enabled and unchanged. This branch adds no new failing test; its focused shader/host regressions and isolated GPU outcomes pass. The cause of the baseline failures is not established, and driver investigation is outside this PR. The full self-check is reported as failed rather than relabeled green.

The GPU overlay proof covers a synthetic cube face. This is not a claim of manual validation for every block model. No private gameplay photos/video are attached; the original synthetic pixel outcomes provide the rendering evidence here.

Vanilla harnesses were not run locally: the isolated public checkout contains no prepared vanilla data. The self-check leaves affected harness selection/execution to CI; a skipped job is not called a pass. No player game was launched or installed Skyline instance changed. No general visual-parity or gameplay-FPS claim is made.

🤖 Generated with Codex


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6692 **Author:** [@gigamans442](https://github.com/gigamans442) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/shader-damaged-block-20261101` --- ### 📝 Commits (2) - [`667dd79`](https://github.com/horizon-rust/horizon/commit/667dd7902ad41c7df3e129852b4832dc6023a0cd) Shader packs: route destroy-stage overlays through gbuffers_damagedblock - [`d454f23`](https://github.com/horizon-rust/horizon/commit/d454f23ff6778fa265bc08e509539fee46b616b5) Use fixed-size slice chunks in the crack projection helper ### 📊 Changes **4 files changed** (+140 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx.rs` (+6 -0) 📝 `crates/horizon-client-render/src/gfx/pack_entities.rs` (+80 -5) 📝 `crates/horizon-client-render/src/gfx/pack_post.rs` (+37 -4) 📝 `crates/horizon-shaders/src/post.rs` (+17 -0) </details> ### 📄 Description > 🤖 Opened by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally. ## What and why Fixes #6680. Load a dedicated gbuffers_damagedblock program, select it for DESTROY runs, project the crack sprite coordinates and use decal depth/blend state without depth writes. Keep the existing fallback when the pack has no applicable program. This isolated patch is based on upstream `0454e97e32b528873dd56d04f0669f57aaa34fbe`: **+140 / -9**, including original regressions. It excludes the personalized instance's theme, mods, game assets, saved data, diagnostic experiments and unrelated shader changes. ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [x] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Not vanilla gameplay: this fixes Horizon's standard-pack host/translator contract. Expected values come from the existing Horizon MIT implementation, the written shader-format contract and original synthetic tests, not a third-party renderer implementation. ## Other projects' code No Iris, OptiFine or Sodium implementation code or shader-pack rendering algorithm is copied/adapted in this patch. It changes Horizon's own host/compiler code and uses original synthetic fixtures. Earlier personal compatibility research did inspect installed shader-pack source; that history is disclosed and this contribution is not described as a clean-room effort. No private packs, worlds, photos or video are attached. ## Regression evidence The original stage-routing regression fails at runtime on unchanged upstream. The synthetic cube-face GPU control produces no shader-specific magenta pixels there; the fixed route must visibly contribute that test color. Projection and fallback controls are included. The user accepted the complete private build, which is not presented as independent acceptance of this branch or every block model. ## Self-check Checked head: `d454f23ff6778fa265bc08e509539fee46b616b5`. **pr_ready** (`tools/pr_ready.py --base upstream/main` on homepc, against upstream/main at 0454e97e3, 2 min 39 s) | Check | Result | | --- | --- | | Scope | ✅ 4 files, +140 −9 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 598 passed (43 s) | | rustfmt | ✅ (9 s) | | clippy | ✅ (39 s) | | tests: horizon-client-render, horizon-shaders | ❌ 981 passed, 2 failed (1 min 7 s) | | doc tests | ✅ 0 passed (1 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (no vanilla data here): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Focused branch regressions: 3 passed; 0 failed; 0 ignored; 0 measured; 1013 filtered out; finished in 0.00s. The touched shader crate was also run separately after Cargo stopped at the known renderer failures: 119 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s. Isolated GPU outcomes (this branch only, unchanged upstream renderer otherwise; RGB rounding tolerance ±1): - damage: 1984 changed pixels and 1984 shader-specific magenta pixels. **Known unchanged-upstream failures:** the two frame-generation image-quality assertions above also fail on the untouched base on this machine (979 passed, 2 failed, 33 ignored). They remain enabled and unchanged. This branch adds no new failing test; its focused shader/host regressions and isolated GPU outcomes pass. The cause of the baseline failures is not established, and driver investigation is outside this PR. The full self-check is reported as failed rather than relabeled green. The GPU overlay proof covers a synthetic cube face. This is not a claim of manual validation for every block model. No private gameplay photos/video are attached; the original synthetic pixel outcomes provide the rendering evidence here. Vanilla harnesses were not run locally: the isolated public checkout contains no prepared vanilla data. The self-check leaves affected harness selection/execution to CI; a skipped job is not called a pass. No player game was launched or installed Skyline instance changed. No general visual-parity or gameplay-FPS claim is made. 🤖 Generated with [Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:32:29 +07:00
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#7036
No description provided.