[PR #7795] Shader packs: suppress vanilla blobs for compiled entity shadows #7826

Open
opened 2026-11-03 07:24:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7795
Author: @gigamans442
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/standard-pack-shadow-owner-20261102


📝 Commits (1)

  • d3117ec Respect compiled standard-pack entity shadow ownership

📊 Changes

5 files changed (+397 additions, -2 deletions)

View changed files

➕ crates/horizon-client-render/examples/entity_shadow_ownership.rs (+220 -0)
📝 crates/horizon-client-render/src/gfx.rs (+12 -0)
📝 crates/horizon-client/src/game.rs (+3 -2)
➕ tests/test_entity_shadow_ownership.py (+26 -0)
➕ tools/test_entity_shadow_ownership.py (+136 -0)

📄 Description

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

What and why

Fixes #7746.

The production regressions and required CI verification pass. The first local self-check below retains its sandbox socket failures; the completed CI run covers those tests and the renderer suite on its runner.

Standard shader packs with a working mob shadow path still received vanilla round blobs because the game checked only native Horizon shadows. Expose the running standard pack's compiled entity caster capability and use it in the existing blob guard. Player-only, block-only, disabled, missing and failed paths keep mob blobs. Native shadows keep their existing Overworld-only suppression.

Production is two files, +15/-2. The remaining changes are original regression fixtures:

  • Execute the actual production sprite selection and caster accessors against 30 independent cases, including settings/sprite absence and all three native dimension fallbacks. The Python suite runs this check.
  • Build a hidden renderer with original generated GLSL. Check 27 standard-pack/dimension combinations, including an injected entity pipeline-creation failure, plus no/pending/dropped pack controls. The fixture consumes shadowtex0 so the shadow pass really activates.

No GPU entity bridge, posing, culling or material changes are included.

Related work: #7054 changes the same large Game::entity_geometry function's signature and particle section. Its current hunks are separate from this blob guard. This change preserves that particle/signature work; any integration follows the current main version of the function. This shared-function boundary is recorded for overlap review.

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 (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Horizon shader-pack integration. Vanilla blob geometry and its generation settings are unchanged. The existing PackPost::shadow_casters() contract decides what a successfully compiled standard pack can draw. Public format references: shadowEntities / shadowPlayer / shadow.enabled, shadow program routing.

Other projects' code

The correction follows Horizon's MIT source and the public format documentation above; no external implementation code is copied or adapted in this patch. A local correction existed before this issue/claim. Earlier private Skyline work included shader-pack research; this extraction is not presented as pristine clean-room provenance. Original fixtures contain no third-party pack or game assets.

Self-check

Original regressions on public base bc761767d35d4fdc1f4b1144fa8ab75168ed4d14 and this branch:

  • Production-method sprite selection: clean base 27 passed / 3 failed (full standard path in Overworld/Nether/End); fixed 30 passed / 0 failed, 90 assertions.
  • Verified host Vulkan run, forced with WGPU_BACKEND=vulkan: original hidden-renderer fixture passes 27 compiled cases, plus no/pending/dropped-pack controls. One common lease covers the exact-source build, saved executable/source hashes, execution and hash readback (head d3117ec15, executable SHA-256 f0b169cbc7ae74a7179f087f0f0a2a4a65371c4d556d56739b8de40dcaa9b96a). A missing entity entry point deliberately exercises device pipeline rejection while the settings remain valid. Fresh scratch homes; no game resources/player world. The earlier separate-lease run is retained as provisional evidence.
  • python3 tools/check_public_tree.py --history: passed.

pr_ready (tools/pr_ready.py --base upstream/main on homepc, against upstream/main at bc761767d, 15 min 14 s)

Check Result
Scope ✅ 5 files, +397 −2
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ❌ 615 run, FAILED (errors=1, skipped=1) (45 s)
rustfmt ✅ (11 s)
clippy ✅ (6 min 38 s)
tests: horizon-client, horizon-client-render ❌ 705 passed, 1 failed (7 min 34 s)
doc tests ✅ 0 passed (6 s)
content root tests ➖ content root untouched
mod API up to date ➖ native hooks 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)

Required CI verification succeeded for this published head: Python 615 tests completed successfully; horizon-client 706 passed / 0 failed / 5 ignored, including the LAN particle socket test; horizon-client-render 1,171 passed / 0 failed / 38 ignored. Formatting and lint also passed. Skipped parity jobs are not presented as parity validation. The local original Vulkan fixture above supplies the focused compiled-capability evidence; CI does not establish cross-backend/gameplay visual parity.

The first local Python-suite invocation ran 615 tests and hit one sandbox setup error: the existing test_control_over_the_tcp_endpoint cannot create a loopback socket (PermissionError: EPERM). The unchanged test passes on the host (1/1, scratch homes). Its original failure remains in the self-check evidence. The existing LAN particle test similarly fails at Lan::start_with with sandbox EPERM; Cargo then stops before running the renderer tests. The successful CI client and renderer runs complete that test coverage on the CI runner. The initial local failures remain disclosed; no local full Vulkan-suite pass is claimed. No test was weakened or skipped to hide a failure.

Screenshots

No player-world screenshots are attached. The original fixture checks compiled capability and the production-method regression checks selected blob sprites; those checks do not establish real-pack temporal appearance or non-Vulkan visual parity.

🤖 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/7795 **Author:** [@gigamans442](https://github.com/gigamans442) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/standard-pack-shadow-owner-20261102` --- ### 📝 Commits (1) - [`d3117ec`](https://github.com/horizon-rust/horizon/commit/d3117ec15dfad3207c242e8e23fafc693595db26) Respect compiled standard-pack entity shadow ownership ### 📊 Changes **5 files changed** (+397 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `crates/horizon-client-render/examples/entity_shadow_ownership.rs` (+220 -0) 📝 `crates/horizon-client-render/src/gfx.rs` (+12 -0) 📝 `crates/horizon-client/src/game.rs` (+3 -2) ➕ `tests/test_entity_shadow_ownership.py` (+26 -0) ➕ `tools/test_entity_shadow_ownership.py` (+136 -0) </details> ### 📄 Description > 🤖 Opened by gigamans442's AI agent (Codex, GPT-6.1-sol), not by gigamans442 personally. ## What and why Fixes #7746. The production regressions and required CI verification pass. The first local self-check below retains its sandbox socket failures; the completed CI run covers those tests and the renderer suite on its runner. Standard shader packs with a working mob shadow path still received vanilla round blobs because the game checked only native Horizon shadows. Expose the running standard pack's compiled entity caster capability and use it in the existing blob guard. Player-only, block-only, disabled, missing and failed paths keep mob blobs. Native shadows keep their existing Overworld-only suppression. Production is two files, +15/-2. The remaining changes are original regression fixtures: - Execute the actual production sprite selection and caster accessors against 30 independent cases, including settings/sprite absence and all three native dimension fallbacks. The Python suite runs this check. - Build a hidden renderer with original generated GLSL. Check 27 standard-pack/dimension combinations, including an injected entity pipeline-creation failure, plus no/pending/dropped pack controls. The fixture consumes `shadowtex0` so the shadow pass really activates. No GPU entity bridge, posing, culling or material changes are included. Related work: #7054 changes the same large `Game::entity_geometry` function's signature and particle section. Its current hunks are separate from this blob guard. This change preserves that particle/signature work; any integration follows the current main version of the function. This shared-function boundary is recorded for overlap review. ## 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 (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Horizon shader-pack integration. Vanilla blob geometry and its generation settings are unchanged. The existing `PackPost::shadow_casters()` contract decides what a successfully compiled standard pack can draw. Public format references: [shadowEntities / shadowPlayer / shadow.enabled](https://shaders.properties/current/reference/shadersproperties/ordering/#shadowentities), [shadow program routing](https://shaders.properties/current/reference/programs/shadow/). ## Other projects' code The correction follows Horizon's MIT source and the public format documentation above; no external implementation code is copied or adapted in this patch. A local correction existed before this issue/claim. Earlier private Skyline work included shader-pack research; this extraction is not presented as pristine clean-room provenance. Original fixtures contain no third-party pack or game assets. ## Self-check Original regressions on public base `bc761767d35d4fdc1f4b1144fa8ab75168ed4d14` and this branch: - Production-method sprite selection: clean base **27 passed / 3 failed** (full standard path in Overworld/Nether/End); fixed **30 passed / 0 failed**, 90 assertions. - Verified host Vulkan run, forced with `WGPU_BACKEND=vulkan`: original hidden-renderer fixture passes **27 compiled cases**, plus no/pending/dropped-pack controls. One common lease covers the exact-source build, saved executable/source hashes, execution and hash readback (head `d3117ec15`, executable SHA-256 `f0b169cbc7ae74a7179f087f0f0a2a4a65371c4d556d56739b8de40dcaa9b96a`). A missing entity entry point deliberately exercises device pipeline rejection while the settings remain valid. Fresh scratch homes; no game resources/player world. The earlier separate-lease run is retained as provisional evidence. - `python3 tools/check_public_tree.py --history`: passed. **pr_ready** (`tools/pr_ready.py --base upstream/main` on homepc, against upstream/main at bc761767d, 15 min 14 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +397 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ❌ 615 run, FAILED (errors=1, skipped=1) (45 s) | | rustfmt | ✅ (11 s) | | clippy | ✅ (6 min 38 s) | | tests: horizon-client, horizon-client-render | ❌ 705 passed, 1 failed (7 min 34 s) | | doc tests | ✅ 0 passed (6 s) | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks 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) | Required [CI verification](https://github.com/horizon-rust/horizon/actions/runs/41524096020/job/125547345762) succeeded for this published head: Python **615 tests** completed successfully; `horizon-client` **706 passed / 0 failed / 5 ignored**, including the LAN particle socket test; `horizon-client-render` **1,171 passed / 0 failed / 38 ignored**. Formatting and lint also passed. Skipped parity jobs are not presented as parity validation. The local original Vulkan fixture above supplies the focused compiled-capability evidence; CI does not establish cross-backend/gameplay visual parity. The first local Python-suite invocation ran 615 tests and hit one sandbox setup error: the existing `test_control_over_the_tcp_endpoint` cannot create a loopback socket (`PermissionError: EPERM`). The unchanged test passes on the host (1/1, scratch homes). Its original failure remains in the self-check evidence. The existing LAN particle test similarly fails at `Lan::start_with` with sandbox `EPERM`; Cargo then stops before running the renderer tests. The successful CI client and renderer runs complete that test coverage on the CI runner. The initial local failures remain disclosed; no local full Vulkan-suite pass is claimed. No test was weakened or skipped to hide a failure. ## Screenshots No player-world screenshots are attached. The original fixture checks compiled capability and the production-method regression checks selected blob sprites; those checks do not establish real-pack temporal appearance or non-Vulkan visual parity. 🤖 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>
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#7826
No description provided.