[PR #7523] [MERGED] port_map: the debug gizmos that draw quads and billboard text #7645

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7523
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/led2-rest-009


📝 Commits (1)

  • db3dd7d port_map: the debug gizmos that draw quads and billboard text

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 tools/port_map/rest-009.tsv (+3 -3)

📄 Description

tools/port_map/rest-009.tsv: three gizmo rows said Horizon has no quad and no billboard text primitive. Both are in the F3 geometry path.

  • Gizmos.billboardTextOverBlock -> inline crates/horizon-client/src/game/debug_renderers.rs::Game::debug_renderer_geometry — the frame collects texts and draws them as centred billboard text in its own colour, one font pixel at gizmos.rs::billboard_text_unit(TEXT_SCALE); the block and sky light views and the water amounts above a block go through it. The comment there names Gizmos.billboardText and its "centred, without a background" shape.
  • RectGizmo.emit -> inline crates/horizon-client/src/gizmos.rs::cuboid_fill_quads — cuboid_fill_quads gives the six faces of a box in a fixed winding, and debug_renderer_geometry fills each with a plain colour from the atlas' white pixel; solid_face_shapes and heightmap_shapes are its callers, and row 39's RectGizmo.fromCuboidFace already cites the same order.
  • TextGizmo.emit -> inline crates/horizon-client/src/game/debug_renderers.rs::Game::debug_renderer_geometry — the same billboard path, with the text's scale in font pixels and the colour packed as the patch's alpha.

The file's other missing rows were rechecked and stay: CircleGizmo.emit and PointGizmo.emit (no circle or point primitive in gizmos.rs), Gizmos.billboardTextOverMob (only blocks get text), SimpleGizmoCollector.GizmoInstance.persistForMillis/getAlphaMultiplier (no expiry and no fade; row 37's LineGizmo.emit note says the same for lines), TextGizmo.Style.withLeftAlignment (the text is centred), and NbtUtils.packStructureTemplate/packBlockState (the template code only reads).

Map-check:

PORT_LEDGER_OUT=/tmp/led-led python3 tools/port_ledger.py map-check tools/port_map/rest-009.tsv
149 rows, no problems.

Proven: the Horizon side read at the cites — debug_renderer_geometry's fills and texts loops and its Gizmos.billboardText comment, cuboid_fill_quads' six-face order and its callers, and billboard_text_unit's scale / 16. Every where cell resolves under map-check.

Not proven: no in-game check; no F3 view was switched on to look at the filled light-level blocks or the numbers above them.


🔄 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/7523 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/led2-rest-009` --- ### 📝 Commits (1) - [`db3dd7d`](https://github.com/horizon-rust/horizon/commit/db3dd7d0b6d7f7168d0006a4b6033af105830c7b) port_map: the debug gizmos that draw quads and billboard text ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-009.tsv` (+3 -3) </details> ### 📄 Description `tools/port_map/rest-009.tsv`: three gizmo rows said Horizon has no quad and no billboard text primitive. Both are in the F3 geometry path. - `Gizmos.billboardTextOverBlock` -> `inline crates/horizon-client/src/game/debug_renderers.rs::Game::debug_renderer_geometry` — the frame collects `texts` and draws them as centred billboard text in its own colour, one font pixel at `gizmos.rs::billboard_text_unit(TEXT_SCALE)`; the block and sky light views and the water amounts above a block go through it. The comment there names `Gizmos.billboardText` and its "centred, without a background" shape. - `RectGizmo.emit` -> `inline crates/horizon-client/src/gizmos.rs::cuboid_fill_quads` — `cuboid_fill_quads` gives the six faces of a box in a fixed winding, and `debug_renderer_geometry` fills each with a plain colour from the atlas' white pixel; `solid_face_shapes` and `heightmap_shapes` are its callers, and row 39's `RectGizmo.fromCuboidFace` already cites the same order. - `TextGizmo.emit` -> `inline crates/horizon-client/src/game/debug_renderers.rs::Game::debug_renderer_geometry` — the same billboard path, with the text's scale in font pixels and the colour packed as the patch's alpha. The file's other `missing` rows were rechecked and stay: `CircleGizmo.emit` and `PointGizmo.emit` (no circle or point primitive in `gizmos.rs`), `Gizmos.billboardTextOverMob` (only blocks get text), `SimpleGizmoCollector.GizmoInstance.persistForMillis`/`getAlphaMultiplier` (no expiry and no fade; row 37's `LineGizmo.emit` note says the same for lines), `TextGizmo.Style.withLeftAlignment` (the text is centred), and `NbtUtils.packStructureTemplate`/`packBlockState` (the template code only reads). Map-check: ``` PORT_LEDGER_OUT=/tmp/led-led python3 tools/port_ledger.py map-check tools/port_map/rest-009.tsv 149 rows, no problems. ``` **Proven:** the Horizon side read at the cites — `debug_renderer_geometry`'s `fills` and `texts` loops and its `Gizmos.billboardText` comment, `cuboid_fill_quads`' six-face order and its callers, and `billboard_text_unit`'s `scale / 16`. Every `where` cell resolves under map-check. **Not proven:** no in-game check; no F3 view was switched on to look at the filled light-level blocks or the numbers above them. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 07:21:18 +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#7645
No description provided.