[PR #5541] [MERGED] Cull back faces of an enderman's carried block, so flowers stop flickering #6344

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5541
Author: @kacpherek
Created: 10/31/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/enderman-carried-cull


📝 Commits (1)

  • e6c42b9 Cull back faces of an enderman's carried block

📊 Changes

1 file changed (+28 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/mob_blocks.rs (+28 -0)

📄 Description

What and why

A flower an enderman carries flickered, its faces fighting each other (#5421). The carried block is drawn through CarriedBlockLayer with an item cutout pipeline, and RenderPipelines.ITEM_CUTOUT (from ITEM_SNIPPET, which never disables culling) culls back faces. Horizon drew the carried block's quads through the non-culling entity path, so both coplanar sides of a cross model (flowers, saplings) were drawn at the same depth. The carried block's quads that face away from the camera are now dropped (cull_back_quads in game/mob_blocks.rs), as the culling pipeline would.

Fixes #5421.

Vanilla reference

CarriedBlockLayer.submit, RenderPipelines.ITEM_CUTOUT / ITEM_SNIPPET (pure vanilla 26.3 decompile).

How it was checked

cargo check -p horizon-client --tests passes; rustfmt clean. Not run in game. Other callers of block_model_vertices (held block items, text displays) may have the same two-sided issue; not changed here.


🔄 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/5541 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/enderman-carried-cull` --- ### 📝 Commits (1) - [`e6c42b9`](https://github.com/horizon-rust/horizon/commit/e6c42b985fbe8edc179323237d6404bf9f130bc7) Cull back faces of an enderman's carried block ### 📊 Changes **1 file changed** (+28 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/mob_blocks.rs` (+28 -0) </details> ### 📄 Description ## What and why A flower an enderman carries flickered, its faces fighting each other (#5421). The carried block is drawn through `CarriedBlockLayer` with an item cutout pipeline, and `RenderPipelines.ITEM_CUTOUT` (from `ITEM_SNIPPET`, which never disables culling) culls back faces. Horizon drew the carried block's quads through the non-culling entity path, so both coplanar sides of a cross model (flowers, saplings) were drawn at the same depth. The carried block's quads that face away from the camera are now dropped (`cull_back_quads` in `game/mob_blocks.rs`), as the culling pipeline would. Fixes #5421. ## Vanilla reference `CarriedBlockLayer.submit`, `RenderPipelines.ITEM_CUTOUT` / `ITEM_SNIPPET` (pure vanilla 26.3 decompile). ## How it was checked `cargo check -p horizon-client --tests` passes; rustfmt clean. Not run in game. Other callers of `block_model_vertices` (held block items, text displays) may have the same two-sided issue; not changed here. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:18:46 +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#6344
No description provided.