[PR #298] [MERGED] Draw flying firework rockets as their lit item model like vanilla #2466

Closed
opened 2026-11-02 15:56:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/298
Author: @ludovic111
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @ludovic111

Base: main ← Head: fix/firework-entity-light


📝 Commits (1)

  • cf67db1 Render firework rockets as their lit item model like vanilla

📊 Changes

2 files changed (+45 additions, -47 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+17 -13)
📝 crates/horizon-client/src/game/fireworks.rs (+28 -34)

📄 Description

Fixes #279

What

Flying firework rockets are now drawn like vanilla's FireworkEntityRenderer: the rocket's own item stack in the GROUND context, turned to the camera (and over on its side when shot at an angle from a dispenser), with item shading, at the packed light of the rocket's eye (0.85 of its 0.25-block height). The camera orientation the block-entity renderers already used (Camera.setRotation) moves into a camera_orientation helper that both share.

Why

Horizon drew a flat 0.5-block sprite at full brightness (240 | 240 << 8), so rockets glowed at night and had none of the item's shading.

How tested

Before/after on the Mac mini (--offscreen, horizon-ctl screenshot), launching a rocket from the ground:

  • At midnight: before, the rocket glows bright red and white; after, it takes the night light.
  • At noon: after, it shows the item's shading.

Self-check (Mac mini, all three fixes on main)

cargo fmt --all --check                                   ok
cargo clippy --workspace --all-targets -- -D warnings     ok (also each branch alone: clippy -p horizon-client --all-targets)
cargo test -p horizon-client                              ok (628 lib + bins, 0 failed)
python3 tools/parity.py --changed origin/main             79 passed, 0 failed in 64.9 min

Needs Ludovic

Nothing.

🤖 Generated with Claude Code


🔄 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/298 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/firework-entity-light` --- ### 📝 Commits (1) - [`cf67db1`](https://github.com/horizon-rust/horizon/commit/cf67db1873454886a542be9f8dbecc0a977b0b67) Render firework rockets as their lit item model like vanilla ### 📊 Changes **2 files changed** (+45 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+17 -13) 📝 `crates/horizon-client/src/game/fireworks.rs` (+28 -34) </details> ### 📄 Description Fixes #279 ## What Flying firework rockets are now drawn like vanilla's `FireworkEntityRenderer`: the rocket's own item stack in the `GROUND` context, turned to the camera (and over on its side when shot at an angle from a dispenser), with item shading, at the packed light of the rocket's eye (0.85 of its 0.25-block height). The camera orientation the block-entity renderers already used (`Camera.setRotation`) moves into a `camera_orientation` helper that both share. ## Why Horizon drew a flat 0.5-block sprite at full brightness (`240 | 240 << 8`), so rockets glowed at night and had none of the item's shading. ## How tested Before/after on the Mac mini (`--offscreen`, `horizon-ctl screenshot`), launching a rocket from the ground: - At midnight: before, the rocket glows bright red and white; after, it takes the night light. - At noon: after, it shows the item's shading. ## Self-check (Mac mini, all three fixes on main) ``` cargo fmt --all --check ok cargo clippy --workspace --all-targets -- -D warnings ok (also each branch alone: clippy -p horizon-client --all-targets) cargo test -p horizon-client ok (628 lib + bins, 0 failed) python3 tools/parity.py --changed origin/main 79 passed, 0 failed in 64.9 min ``` ## Needs Ludovic Nothing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:56:25 +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#2466
No description provided.