[PR #3683] [MERGED] Add files via upload #5149

Closed
opened 2026-11-03 05:10:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3683
Author: @repositorykreml1n
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: main


📝 Commits (1)

📊 Changes

1 file changed (+85 additions, -47 deletions)

View changed files

📝 crates/horizon-client/src/game/dragon.rs (+85 -47)

📄 Description

🤖 Opened by Dementia's AI agent (OpenAI Codex), not by Dementia himself.

What and why

Fix the broken Ender Dragon death rays reported by Dementia in Discord. The rays sampled the border of the atlas's white sprite; perspective interpolation could round those UVs onto neighbouring transparent texels, leaving holes or near-invisible rays. Sample the sprite center instead.

The existing vertex generator is extracted into a pure function so a regression test checks every emitted ray vertex at early, mid, fading and final progress. Geometry, random draws, colors and timing are preserved.

Fixes #3658.

Vanilla reference

Minecraft 26.3 EnderDragonRenderer.submitRays / lambda$submitRays$0 and RenderTypes.dragonRays: untextured additive geometry. Inspected the bytecode from the reporter's installed vanilla 26.3 jar locally with javap. No Mojang files are included.

Validation

  • Regression test failed before the UV change: death-ray U touches the atlas border: 0.01953125.
  • cargo test -p horizon-client --no-default-features --bin horizon-client: 147 passed, 3 ignored, 0 failed.
  • cargo fmt --all -- --check: passed.
  • pr_ready --quick: 811 Rust tests passed with the project's CI features; rustfmt, Clippy, public-tree and doc-test checks passed.
  • Native Vulkan captures on RTX 5070: solid white-to-magenta rays at death_time 70 and during the fade after tick 165. Reference nightly 2026-10-28-6f8c7a0 almost omits the rays. Tested on the in-frame path; the shared renderer also serves the integrated-server client.
  • cargo build --profile fast -p horizon-client --no-default-features --bin horizon-client: passed.
  • Work was tested in isolated game homes; the player's world was not changed.

Self-check

pr_ready (tools/pr_ready.py --quick on Windows x86_64, against origin/main at ba86a4d76, 10 min 43 s)

Check Result
Scope ✅ 1 files, +85 −47
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 411 run, FAILED (failures=1, skipped=12) (1 min 31 s)
rustfmt ✅ (9 s)
clippy ✅ (2 min 50 s)
tests: horizon-client ✅ 811 passed (4 min 49 s)
doc tests ✅ 0 passed (1 min 18 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 (--quick): 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)

Self-check limitations

The repository's Python test_port_publish.PublishTests.test_body_has_names_and_signatures_only expects a POSIX path and fails on Windows's backslashes. This is outside the changed file. Port-ledger construction also fails with StopIteration when run from jars without full decompiled sources; the vanilla renderer was inspected directly instead. No vanilla parity harnesses were run locally. The self-check selected them for CI.

🤖 Generated with OpenAI 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/3683 **Author:** [@repositorykreml1n](https://github.com/repositorykreml1n) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`01791ab`](https://github.com/horizon-rust/horizon/commit/01791aba51fc4ecb2178e2aafbc85de4a25ef7da) Add files via upload ### 📊 Changes **1 file changed** (+85 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dragon.rs` (+85 -47) </details> ### 📄 Description > 🤖 Opened by Dementia's AI agent (OpenAI Codex), not by Dementia himself. ## What and why Fix the broken Ender Dragon death rays reported by Dementia in Discord. The rays sampled the border of the atlas's white sprite; perspective interpolation could round those UVs onto neighbouring transparent texels, leaving holes or near-invisible rays. Sample the sprite center instead. The existing vertex generator is extracted into a pure function so a regression test checks every emitted ray vertex at early, mid, fading and final progress. Geometry, random draws, colors and timing are preserved. Fixes #3658. ## Vanilla reference Minecraft 26.3 `EnderDragonRenderer.submitRays` / `lambda$submitRays$0` and `RenderTypes.dragonRays`: untextured additive geometry. Inspected the bytecode from the reporter's installed vanilla 26.3 jar locally with javap. No Mojang files are included. ## Validation - Regression test failed before the UV change: `death-ray U touches the atlas border: 0.01953125`. - `cargo test -p horizon-client --no-default-features --bin horizon-client`: 147 passed, 3 ignored, 0 failed. - `cargo fmt --all -- --check`: passed. - `pr_ready --quick`: 811 Rust tests passed with the project's CI features; rustfmt, Clippy, public-tree and doc-test checks passed. - Native Vulkan captures on RTX 5070: solid white-to-magenta rays at death_time 70 and during the fade after tick 165. Reference nightly 2026-10-28-6f8c7a0 almost omits the rays. Tested on the in-frame path; the shared renderer also serves the integrated-server client. - `cargo build --profile fast -p horizon-client --no-default-features --bin horizon-client`: passed. - Work was tested in isolated game homes; the player's world was not changed. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on Windows x86_64, against origin/main at ba86a4d76, 10 min 43 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +85 −47 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 411 run, FAILED (failures=1, skipped=12) (1 min 31 s) | | rustfmt | ✅ (9 s) | | clippy | ✅ (2 min 50 s) | | tests: horizon-client | ✅ 811 passed (4 min 49 s) | | doc tests | ✅ 0 passed (1 min 18 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 (--quick): 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) | ## Self-check limitations The repository's Python `test_port_publish.PublishTests.test_body_has_names_and_signatures_only` expects a POSIX path and fails on Windows's backslashes. This is outside the changed file. Port-ledger construction also fails with StopIteration when run from jars without full decompiled sources; the vanilla renderer was inspected directly instead. No vanilla parity harnesses were run locally. The self-check selected them for CI. 🤖 Generated with [OpenAI 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 05:10:35 +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#5149
No description provided.