[PR #4709] [MERGED] Cull back faces on translucent slime/honey items #5795

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4709
Author: @WooCaash
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/4508-slime-honey-item-texture


📝 Commits (1)

  • f935ff6 Cull back faces on translucent dropped items.

📊 Changes

1 file changed (+30 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/item_render.rs (+30 -2)

📄 Description

🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally.

Summary

  • Dropped slime/honey (and other translucent-sheet items) draw on ITEM_TRANSLUCENT without depth writes. Both sides of the jelly shell were blending their partial alpha and looking opaque (#4508).
  • Cull back faces when the quad is translucent so only the near shell shows through to the inner cube (glass already discards most texels at alpha 0).
  • Regression: indexed PNG tRNS decode keeps fractional alpha so those sprites stay on the translucent sheet.

Test plan

  • Drop a slime block and a honey block on a light surface; outer shell should be see-through with a darker core (not a solid cube).
  • Drop glass / stained glass; still looks correct.
  • cargo test -p horizon-client --lib item_render::tests::palette_trns

Closes #4508

🤖 Generated with Cursor

Made with Cursor


🔄 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/4709 **Author:** [@WooCaash](https://github.com/WooCaash) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/4508-slime-honey-item-texture` --- ### 📝 Commits (1) - [`f935ff6`](https://github.com/horizon-rust/horizon/commit/f935ff68a58e76de937f431f8c7e79e4e3929dfb) Cull back faces on translucent dropped items. ### 📊 Changes **1 file changed** (+30 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/item_render.rs` (+30 -2) </details> ### 📄 Description > 🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally. ## Summary - Dropped slime/honey (and other translucent-sheet items) draw on `ITEM_TRANSLUCENT` without depth writes. Both sides of the jelly shell were blending their partial alpha and looking opaque (#4508). - Cull back faces when the quad is translucent so only the near shell shows through to the inner cube (glass already discards most texels at alpha 0). - Regression: indexed PNG `tRNS` decode keeps fractional alpha so those sprites stay on the translucent sheet. ## Test plan - [ ] Drop a slime block and a honey block on a light surface; outer shell should be see-through with a darker core (not a solid cube). - [ ] Drop glass / stained glass; still looks correct. - [ ] `cargo test -p horizon-client --lib item_render::tests::palette_trns` Closes #4508 🤖 Generated with [Cursor](https://cursor.com) Made with [Cursor](https://cursor.com) --- <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: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#5795
No description provided.