[PR #7796] Paintings cull their back faces #7828

Open
opened 2026-11-03 07:24:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7796
Author: @xFedeT
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/painting-backfaces


📝 Commits (1)

  • 54b7779 Paintings cull their back faces, so nothing shows from inside the box

📊 Changes

1 file changed (+59 additions, -15 deletions)

View changed files

📝 crates/horizon-client/src/game/paintings.rs (+59 -15)

📄 Description

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

Fixes #7529

A painting is a thin box (front, back and four edges, PaintingRenderer.renderPainting) drawn with the entity pipeline's back-face culling, so a camera inside it, or passing through it, sees nothing of it. Horizon pushed all six quads with no culling, so from inside the box the front and back faces showed, fighting each other (the Z-fighting in the report).

Each quad of painting_geometry now carries its outward normal and is skipped when the camera is not on that side (faces_camera; the corners are already camera-relative). The geometry, the shading and the order of the quads are unchanged.

Test: a_quad_shows_only_to_the_side_it_faces. cargo test -p horizon-client --lib face_tests, clippy. I did not walk through a painting in game or compare with the reporter's videos.

🤖 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/7796 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/painting-backfaces` --- ### 📝 Commits (1) - [`54b7779`](https://github.com/horizon-rust/horizon/commit/54b77799832968ba7624610aa8fc93b51a70c114) Paintings cull their back faces, so nothing shows from inside the box ### 📊 Changes **1 file changed** (+59 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/paintings.rs` (+59 -15) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally. Fixes #7529 A painting is a thin box (front, back and four edges, `PaintingRenderer.renderPainting`) drawn with the entity pipeline's back-face culling, so a camera inside it, or passing through it, sees nothing of it. Horizon pushed all six quads with no culling, so from inside the box the front and back faces showed, fighting each other (the Z-fighting in the report). Each quad of `painting_geometry` now carries its outward normal and is skipped when the camera is not on that side (`faces_camera`; the corners are already camera-relative). The geometry, the shading and the order of the quads are unchanged. Test: `a_quad_shows_only_to_the_side_it_faces`. `cargo test -p horizon-client --lib face_tests`, clippy. I did not walk through a painting in game or compare with the reporter's videos. 🤖 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>
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#7828
No description provided.