[PR #3849] [CLOSED] Cull back faces of text displays #5248

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3849
Author: @DUzzL
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: fix/text-display-backface


📝 Commits (1)

  • a73a13d Cull back faces of world text

📊 Changes

2 files changed (+33 additions, -2 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx.rs (+2 -2)
📝 crates/horizon-client/src/text_display.rs (+31 -0)

📄 Description

🤖 Opened by DUzzL's AI agent (OpenAI Codex, GPT-6), not by DUzzL personally.

What and why

Fixed text-display holograms are visible through their backs because both world-text pipelines disable face culling. Enable back-face culling for polygon-offset and see-through text so fixed displays render only from their front. This also preserves the front-facing winding of camera-facing name tags.

Fixes #3833.

Vanilla reference

RenderPipelines.TEXT_POLYGON_OFFSET, RenderPipelines.TEXT_SEE_THROUGH, TEXT_SNIPPET, WORLD_TEXT_SNIPPET, and RenderPipeline.Builder.build: the 26.3 client bytecode leaves culling enabled for both pipelines. The new winding test covers fixed rotation, a reflected scale, and a center billboard.

Self-check

  • cargo test -p horizon-client --lib text_display: 2 passed (includes the winding test text_quad_front_tracks_the_display_transform).
  • cargo fmt --check: passed.
  • cargo clippy -p horizon-client-render -p horizon-client --all-targets -- -D warnings: passes on Windows only with -A dead_code; without it, gfx::log_display is reported as never used (it is only called from a Linux-only function; this PR does not touch it, so it is not caused by this change).
  • cargo test -p horizon-client-render --lib: 547 passed, 16 ignored. cargo test -p horizon-client --lib: 670 passed, 20 ignored.
  • Python tests and the full workspace clippy: not re-run.
  • Vanilla parity harness and in-game screenshots: not run; prepared resources are unavailable.

🤖 Generated with OpenAI Codex.


🔄 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/3849 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/text-display-backface` --- ### 📝 Commits (1) - [`a73a13d`](https://github.com/horizon-rust/horizon/commit/a73a13d4bf5b9e43255180bd3550bdce653461f5) Cull back faces of world text ### 📊 Changes **2 files changed** (+33 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx.rs` (+2 -2) 📝 `crates/horizon-client/src/text_display.rs` (+31 -0) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent (OpenAI Codex, GPT-6), not by DUzzL personally. ## What and why Fixed text-display holograms are visible through their backs because both world-text pipelines disable face culling. Enable back-face culling for polygon-offset and see-through text so fixed displays render only from their front. This also preserves the front-facing winding of camera-facing name tags. Fixes #3833. ## Vanilla reference `RenderPipelines.TEXT_POLYGON_OFFSET`, `RenderPipelines.TEXT_SEE_THROUGH`, `TEXT_SNIPPET`, `WORLD_TEXT_SNIPPET`, and `RenderPipeline.Builder.build`: the 26.3 client bytecode leaves culling enabled for both pipelines. The new winding test covers fixed rotation, a reflected scale, and a center billboard. ## Self-check - `cargo test -p horizon-client --lib text_display`: 2 passed (includes the winding test `text_quad_front_tracks_the_display_transform`). - `cargo fmt --check`: passed. - `cargo clippy -p horizon-client-render -p horizon-client --all-targets -- -D warnings`: passes on Windows only with `-A dead_code`; without it, `gfx::log_display` is reported as never used (it is only called from a Linux-only function; this PR does not touch it, so it is not caused by this change). - `cargo test -p horizon-client-render --lib`: 547 passed, 16 ignored. `cargo test -p horizon-client --lib`: 670 passed, 20 ignored. - Python tests and the full workspace clippy: not re-run. - Vanilla parity harness and in-game screenshots: not run; prepared resources are unavailable. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:14 +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#5248
No description provided.