[PR #4828] [MERGED] Spectating a creeper, spider or enderman puts its post effect on the screen #5878

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

📋 Pull Request Information

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

Base: main ← Head: parity/E3-entity-post-effect


📝 Commits (3)

  • a55abdf Draw post_effect chains over the world (PostChain, PostPass, handlePostEffects)
  • 9b5e002 Keep /posteffect per player and send ClientboundPostEffectsPacket
  • 83b29e4 Put the spectated creeper, spider or enderman's post effect on the screen

📊 Changes

15 files changed (+1587 additions, -22 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx.rs (+26 -1)
📝 crates/horizon-client-render/src/lib.rs (+1 -0)
➕ crates/horizon-client-render/src/post_chain.rs (+1195 -0)
➕ crates/horizon-client-render/src/post_chain.wgsl (+124 -0)
📝 crates/horizon-client/src/game.rs (+28 -0)
📝 crates/horizon-client/src/game/commands/extra.rs (+57 -12)
📝 crates/horizon-client/src/game/perspective.rs (+5 -0)
📝 crates/horizon-client/src/game/remote.rs (+2 -0)
📝 crates/horizon-client/src/game/remote_camera.rs (+51 -1)
📝 crates/horizon-client/src/lan/guest.rs (+5 -0)
📝 crates/horizon-client/src/lan/hub.rs (+19 -3)
📝 crates/horizon-client/src/lan/playerdata.rs (+25 -0)
📝 crates/horizon-client/src/lib.rs (+5 -5)
📝 crates/horizon-client/src/save.rs (+19 -0)
📝 crates/horizon-protocol/src/packets/play.rs (+25 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3519

Stacked on #4826 and #4825; merge those first.

Rows:

  • GameRenderer.checkEntityPostEffect: spectating a creeper (creeper), spider or cave spider (spider) or enderman (invert) adds that post chain after the player's own (spectatedEntityPostEffect). Set when the camera changes (Minecraft.setCameraEntity, from ClientboundSetCameraPacket) and on the perspective toggle (cleared outside first person, as handleKeybinds does); cleared when the world closes.

Vanilla followed: GameRenderer.checkEntityPostEffect/update, Minecraft.setCameraEntity/handleKeybinds.

Tests: the entity-to-chain table. The chains themselves are drawn by #4825.

🤖 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/4828 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/E3-entity-post-effect` --- ### 📝 Commits (3) - [`a55abdf`](https://github.com/horizon-rust/horizon/commit/a55abdfe89c1cd17f12f41169f6b9c2d515d1eff) Draw post_effect chains over the world (PostChain, PostPass, handlePostEffects) - [`9b5e002`](https://github.com/horizon-rust/horizon/commit/9b5e0026f3123fda7921b8a17b78f79c1e4424df) Keep /posteffect per player and send ClientboundPostEffectsPacket - [`83b29e4`](https://github.com/horizon-rust/horizon/commit/83b29e43ff469c2ac737056d3bd32be437f33fb5) Put the spectated creeper, spider or enderman's post effect on the screen ### 📊 Changes **15 files changed** (+1587 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx.rs` (+26 -1) 📝 `crates/horizon-client-render/src/lib.rs` (+1 -0) ➕ `crates/horizon-client-render/src/post_chain.rs` (+1195 -0) ➕ `crates/horizon-client-render/src/post_chain.wgsl` (+124 -0) 📝 `crates/horizon-client/src/game.rs` (+28 -0) 📝 `crates/horizon-client/src/game/commands/extra.rs` (+57 -12) 📝 `crates/horizon-client/src/game/perspective.rs` (+5 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+2 -0) 📝 `crates/horizon-client/src/game/remote_camera.rs` (+51 -1) 📝 `crates/horizon-client/src/lan/guest.rs` (+5 -0) 📝 `crates/horizon-client/src/lan/hub.rs` (+19 -3) 📝 `crates/horizon-client/src/lan/playerdata.rs` (+25 -0) 📝 `crates/horizon-client/src/lib.rs` (+5 -5) 📝 `crates/horizon-client/src/save.rs` (+19 -0) 📝 `crates/horizon-protocol/src/packets/play.rs` (+25 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3519 Stacked on #4826 and #4825; merge those first. Rows: - `GameRenderer.checkEntityPostEffect`: spectating a creeper (`creeper`), spider or cave spider (`spider`) or enderman (`invert`) adds that post chain after the player's own (`spectatedEntityPostEffect`). Set when the camera changes (`Minecraft.setCameraEntity`, from `ClientboundSetCameraPacket`) and on the perspective toggle (cleared outside first person, as `handleKeybinds` does); cleared when the world closes. Vanilla followed: `GameRenderer.checkEntityPostEffect/update`, `Minecraft.setCameraEntity/handleKeybinds`. Tests: the entity-to-chain table. The chains themselves are drawn by #4825. 🤖 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-03 05:15:38 +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#5878
No description provided.