[PR #4918] [MERGED] Improved transparency: the rest of the entity render types with an OIT pipeline set #5939

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

📋 Pull Request Information

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

Base: main ← Head: parity/B4-oit-rest


📝 Commits (1)

  • 4bbb1d3 Improved transparency: xp orbs, shulker shells, player heads, dragon eyes, HDR eye mark

📊 Changes

9 files changed (+140 additions, -8 deletions)

View changed files

📝 crates/horizon-client-render/src/block_entity_render.rs (+7 -0)
📝 crates/horizon-client-render/src/gfx.rs (+11 -2)
📝 crates/horizon-client-render/src/gfx/entity_batch.rs (+69 -1)
📝 crates/horizon-client/src/game.rs (+8 -1)
📝 crates/horizon-client/src/game/creatures.rs (+4 -1)
📝 crates/horizon-client/src/game/dragon.rs (+6 -1)
📝 crates/horizon-client/src/item_render.rs (+11 -1)
📝 crates/horizon-client/src/item_render/gui.rs (+1 -0)
📝 crates/horizon-client/src/item_render/special.rs (+23 -1)

📄 Description

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

Part of #3519

Follows #4850, #4883, #4897 and #4909. Option off: unchanged (same draws, same order).

Rows

  • LevelRenderer.executeOit (the rest of the entity render types vanilla gives an OitPipelineSet), tagged with #4909's OIT_ENTITY quad tag:
    • Experience orbs (ExperienceOrbRenderer: entityTranslucent) and the shulker bullet's shell (ShulkerBulletRenderer: the second, entityTranslucent submit; the core is entityCutoutNoCull).
    • Player heads (SkullBlockRenderer.getPlayerSkinRenderType / PlayerHeadSpecialRenderer: entityTranslucent): the block entity with a profile, and the head item (worn by an armor stand or a mob, dropped, in a frame) through a new ItemQuad::oit. Mob heads (skeleton, zombie, creeper, piglin, dragon) use entityCutoutZOffset: no OIT set, unchanged.
    • The dragon's eyes (RenderTypes.eyes): they share the additive buffer with the rays, so the tagged quads move into the entity stage material only when the option is on (blended, no additive overlay, no baked shading).
    • HDR output: the eyes drawn in the stages get the HDR shine mark (fs_hdr_mark) after the OIT run.

Checked against vanilla, left classic on purpose

  • First-person hand and held item: GameRenderer draws them from handAndScreenSubmitNodeStorage, which never gets setUseImprovedTransparency (only LevelRenderer calls it), so entityTranslucent there is a plain draw. Any tag is stripped from the hand's geometry.
  • Elytra and cape layers: entitySolid (CapeLayer) and armorCutoutNoCull (equipment layers): no OIT set.
  • Armor stands: getRenderType is entityTranslucent only for a marker forced transparent (an invisible stand seen by a spectator or teammate); Horizon draws no body for an invisible stand, and the visible body is entityCutout*. Nothing to route.

Kind

  • parity: Horizon now does what vanilla 26.3 does

Vanilla reference

LevelRenderer.executeOit, SubmitNodeStorage.setUseImprovedTransparency, FeatureRenderDispatcher.renderAllFeatures, RenderTypes (entityTranslucent, eyes, entityCutoutZOffset), ExperienceOrbRenderer, ShulkerBulletRenderer, SkullBlockRenderer, PlayerHeadSpecialRenderer, EnderDragonRenderer, AvatarRenderer.renderHand.

Self-check

fmt, clippy -p horizon-client-render -p horizon-client --all-targets -D warnings, test -p horizon-client-render --lib (new entity_batch test: tagged additive quads join the last material only when on), test -p horizon-client --lib item_render. Checked in the game (offscreen, fast build): cyan stained glass with experience orbs, armor stands wearing a player head and a skeleton skull in front of and behind it, and a held player head in first person, option off and on: identical to the eye, no errors.

🤖 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/4918 **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/B4-oit-rest` --- ### 📝 Commits (1) - [`4bbb1d3`](https://github.com/horizon-rust/horizon/commit/4bbb1d3b42a5924ce0d561ec6a067957fb36b235) Improved transparency: xp orbs, shulker shells, player heads, dragon eyes, HDR eye mark ### 📊 Changes **9 files changed** (+140 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/block_entity_render.rs` (+7 -0) 📝 `crates/horizon-client-render/src/gfx.rs` (+11 -2) 📝 `crates/horizon-client-render/src/gfx/entity_batch.rs` (+69 -1) 📝 `crates/horizon-client/src/game.rs` (+8 -1) 📝 `crates/horizon-client/src/game/creatures.rs` (+4 -1) 📝 `crates/horizon-client/src/game/dragon.rs` (+6 -1) 📝 `crates/horizon-client/src/item_render.rs` (+11 -1) 📝 `crates/horizon-client/src/item_render/gui.rs` (+1 -0) 📝 `crates/horizon-client/src/item_render/special.rs` (+23 -1) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3519 Follows #4850, #4883, #4897 and #4909. Option off: unchanged (same draws, same order). ## Rows - `LevelRenderer.executeOit` (the rest of the entity render types vanilla gives an `OitPipelineSet`), tagged with #4909's `OIT_ENTITY` quad tag: - Experience orbs (`ExperienceOrbRenderer`: `entityTranslucent`) and the shulker bullet's shell (`ShulkerBulletRenderer`: the second, `entityTranslucent` submit; the core is `entityCutoutNoCull`). - Player heads (`SkullBlockRenderer.getPlayerSkinRenderType` / `PlayerHeadSpecialRenderer`: `entityTranslucent`): the block entity with a profile, and the head item (worn by an armor stand or a mob, dropped, in a frame) through a new `ItemQuad::oit`. Mob heads (skeleton, zombie, creeper, piglin, dragon) use `entityCutoutZOffset`: no OIT set, unchanged. - The dragon's eyes (`RenderTypes.eyes`): they share the additive buffer with the rays, so the tagged quads move into the entity stage material only when the option is on (blended, no additive overlay, no baked shading). - HDR output: the eyes drawn in the stages get the HDR shine mark (`fs_hdr_mark`) after the OIT run. ## Checked against vanilla, left classic on purpose - First-person hand and held item: `GameRenderer` draws them from `handAndScreenSubmitNodeStorage`, which never gets `setUseImprovedTransparency` (only `LevelRenderer` calls it), so `entityTranslucent` there is a plain draw. Any tag is stripped from the hand's geometry. - Elytra and cape layers: `entitySolid` (`CapeLayer`) and `armorCutoutNoCull` (equipment layers): no OIT set. - Armor stands: `getRenderType` is `entityTranslucent` only for a marker forced transparent (an invisible stand seen by a spectator or teammate); Horizon draws no body for an invisible stand, and the visible body is `entityCutout*`. Nothing to route. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does ## Vanilla reference `LevelRenderer.executeOit`, `SubmitNodeStorage.setUseImprovedTransparency`, `FeatureRenderDispatcher.renderAllFeatures`, `RenderTypes` (`entityTranslucent`, `eyes`, `entityCutoutZOffset`), `ExperienceOrbRenderer`, `ShulkerBulletRenderer`, `SkullBlockRenderer`, `PlayerHeadSpecialRenderer`, `EnderDragonRenderer`, `AvatarRenderer.renderHand`. ## Self-check fmt, `clippy -p horizon-client-render -p horizon-client --all-targets -D warnings`, `test -p horizon-client-render --lib` (new `entity_batch` test: tagged additive quads join the last material only when on), `test -p horizon-client --lib item_render`. Checked in the game (offscreen, fast build): cyan stained glass with experience orbs, armor stands wearing a player head and a skeleton skull in front of and behind it, and a held player head in first person, option off and on: identical to the eye, no errors. 🤖 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:16:03 +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#5939
No description provided.