[PR #5650] [MERGED] Fix Ender Dragon death-pose jitter and ray rendering #6417

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5650
Author: @TiggerTakkyTTT
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/dragon-death-animation


📝 Commits (1)

  • 49cdc5a fix(render): match dragon death pose and rays to vanilla

📊 Changes

7 files changed (+205 additions, -8 deletions)

View changed files

📝 crates/horizon-client-render/src/entity.wgsl (+7 -0)
📝 crates/horizon-client-render/src/gfx.rs (+34 -5)
📝 crates/horizon-client-render/src/gfx/entity_batch.rs (+2 -0)
📝 crates/horizon-client-render/src/gfx/oit_features.rs (+6 -1)
📝 crates/horizon-client/src/game/dragon.rs (+53 -2)
➕ mods/horizon/src/test/java/dev/horizonlab/parity/VanillaDragonRenderOracle.java (+48 -0)
➕ tools/test_dragon_render_parity.py (+55 -0)

📄 Description

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

What and why

Fixes #4793.

The Ender Dragon's frozen flight history was interpolated again on every frame after death, making its pose repeat between ticks. Stop that interpolation when the dragon has no health, as vanilla does.

Death rays now use vanilla's depth writes and back-face culling, and fade both colour and alpha with distance fog. They use untextured vertex colour rather than the eyes' textured render path. Back-face culling also applies with improved transparency enabled.

Add a regression for the frozen death pose and a vanilla oracle capturing the real death-ray triangles. Across eight death times, all 2,169 vertices match within 0.002 blocks; triangle counts and RGBA values match exactly. The position tolerance covers accumulated JOML/glam floating-point rounding.

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

  • EnderDragonRenderer.extractRenderState: sets flight-history partial ticks to zero when dead or dying.
  • EnderDragonRenderer.submitRays: triangle geometry, count, random sequence and colour gradient.
  • RenderPipelines.DRAGON_RAYS, OIT_DRAGON_RAYS and DepthStencilState.DEFAULT: ray culling and depth behaviour.
  • rendertype_lightning.fsh: untextured vertex colour with fog applied to RGB and alpha.

Checked against the player's installed, checksum-verified Minecraft 26.3 client jar. tools/test_dragon_render_parity.py captures the real vanilla renderer through a VertexConsumer and compares it with Horizon's ray geometry; the Rust regression checks the pose across partial ticks.

Other projects' code

None.

Self-check

pr_ready (tools/pr_ready.py --base upstream/main, against upstream/main at d0ce8fa54, 10 min 2 s)

Check Result
Scope ✅ 9 files, +233 −8
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ✅ 510 passed (3 min 3 s)
rustfmt ✅ (31 s)
clippy ✅ (4 min 56 s)
tests: horizon-client, horizon-client-render ✅ 2397 passed (1 min 18 s)
doc tests ✅ 0 passed (11 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)

The scope count includes two pre-existing untracked text files; neither is included in this seven-file commit. The full affected harness set needs CI’s prepared vanilla data. The dragon-render oracle was run locally against the checksum-verified installed client: 8 cases, 2,169 vertices; all 16 dragon tests passed.


🔄 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/5650 **Author:** [@TiggerTakkyTTT](https://github.com/TiggerTakkyTTT) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/dragon-death-animation` --- ### 📝 Commits (1) - [`49cdc5a`](https://github.com/horizon-rust/horizon/commit/49cdc5aa61c857e8f569568602b2cc9fa439efe4) fix(render): match dragon death pose and rays to vanilla ### 📊 Changes **7 files changed** (+205 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/entity.wgsl` (+7 -0) 📝 `crates/horizon-client-render/src/gfx.rs` (+34 -5) 📝 `crates/horizon-client-render/src/gfx/entity_batch.rs` (+2 -0) 📝 `crates/horizon-client-render/src/gfx/oit_features.rs` (+6 -1) 📝 `crates/horizon-client/src/game/dragon.rs` (+53 -2) ➕ `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaDragonRenderOracle.java` (+48 -0) ➕ `tools/test_dragon_render_parity.py` (+55 -0) </details> ### 📄 Description > 🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-6), not by TiggerTakkyTTT personally. ## What and why Fixes #4793. The Ender Dragon's frozen flight history was interpolated again on every frame after death, making its pose repeat between ticks. Stop that interpolation when the dragon has no health, as vanilla does. Death rays now use vanilla's depth writes and back-face culling, and fade both colour and alpha with distance fog. They use untextured vertex colour rather than the eyes' textured render path. Back-face culling also applies with improved transparency enabled. Add a regression for the frozen death pose and a vanilla oracle capturing the real death-ray triangles. Across eight death times, all 2,169 vertices match within 0.002 blocks; triangle counts and RGBA values match exactly. The position tolerance covers accumulated JOML/glam floating-point rounding. ## Kind - [x] 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 - `EnderDragonRenderer.extractRenderState`: sets flight-history partial ticks to zero when dead or dying. - `EnderDragonRenderer.submitRays`: triangle geometry, count, random sequence and colour gradient. - `RenderPipelines.DRAGON_RAYS`, `OIT_DRAGON_RAYS` and `DepthStencilState.DEFAULT`: ray culling and depth behaviour. - `rendertype_lightning.fsh`: untextured vertex colour with fog applied to RGB and alpha. Checked against the player's installed, checksum-verified Minecraft 26.3 client jar. `tools/test_dragon_render_parity.py` captures the real vanilla renderer through a `VertexConsumer` and compares it with Horizon's ray geometry; the Rust regression checks the pose across partial ticks. ## Other projects' code None. ## Self-check **pr_ready** (`tools/pr_ready.py --base upstream/main`, against upstream/main at d0ce8fa54, 10 min 2 s) | Check | Result | | --- | --- | | Scope | ✅ 9 files, +233 −8 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ✅ 510 passed (3 min 3 s) | | rustfmt | ✅ (31 s) | | clippy | ✅ (4 min 56 s) | | tests: horizon-client, horizon-client-render | ✅ 2397 passed (1 min 18 s) | | doc tests | ✅ 0 passed (11 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) | The scope count includes two pre-existing untracked text files; neither is included in this seven-file commit. The full affected harness set needs CI’s prepared vanilla data. The dragon-render oracle was run locally against the checksum-verified installed client: 8 cases, 2,169 vertices; all 16 dragon tests passed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:20:16 +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#6417
No description provided.