[PR #7698] Shader packs: draw the block outline with the pack's gbuffers_line #7771

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

📋 Pull Request Information

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

Base: main ← Head: shader-lines


📝 Commits (1)

  • db56175 Shader packs: draw the block outline with the pack's gbuffers_line

📊 Changes

5 files changed (+176 additions, -2 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx.rs (+15 -2)
➕ crates/horizon-client-render/src/gfx/pack_lines.rs (+65 -0)
📝 crates/horizon-client-render/src/gfx/pack_post.rs (+76 -0)
📝 crates/horizon-shaders/src/post.rs (+19 -0)
📝 crates/horizon-shaders/tests/real_packs.rs (+1 -0)

📄 Description

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

What and why

As in Iris, the block outline is now drawn by the pack's gbuffers_line, else gbuffers_basic, through the pack's own transform; the game draws its own only when the pack has neither. The edges are the game's outline buffer, one instance per edge, widened in screen space after the pack's transform the way terrain.wgsl's outline_clip does.

Without it, a pack that renders the world into part of its buffers and scales it up (SEUS PTGI HRR 3) got the game's full-size outline scaled with it: a black box floating in the top right. Packs that style the outline get their look.

Not covered yet: Complementary Reimagined's gbuffers_line widens lines itself like vanilla's line shader and needs projectionMatrix/modelViewMatrix, vaNormal and vanilla's vertex order, which gbuffers programs don't get today. It falls back to its gbuffers_basic (note in the log), which looks the same as before.

Tested

SEUS PTGI HRR 3, together with #7694 (which it needs to render at all): the outline sits on the targeted block from every angle, also after frames with nothing targeted. Complementary falls back as described. pr_ready --quick passes.

pr_ready (tools/pr_ready.py --quick on d681aa3b7791, against origin/main at 97dc1b553, 2 min 21 s)

Check Result
Scope ✅ 5 files, +176 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (44 s)
rustfmt ✅ (11 s)
clippy ✅ (28 s)
tests: horizon-client-render, horizon-shaders ✅ 1325 passed (57 s)
doc tests ✅ 0 passed (1 s)
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/7698 **Author:** [@senjinthedragon](https://github.com/senjinthedragon) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `shader-lines` --- ### 📝 Commits (1) - [`db56175`](https://github.com/horizon-rust/horizon/commit/db5617505122e2cec5fc29b283985a64ec346593) Shader packs: draw the block outline with the pack's gbuffers_line ### 📊 Changes **5 files changed** (+176 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx.rs` (+15 -2) ➕ `crates/horizon-client-render/src/gfx/pack_lines.rs` (+65 -0) 📝 `crates/horizon-client-render/src/gfx/pack_post.rs` (+76 -0) 📝 `crates/horizon-shaders/src/post.rs` (+19 -0) 📝 `crates/horizon-shaders/tests/real_packs.rs` (+1 -0) </details> ### 📄 Description > 🤖 Opened by senjinthedragon's AI agent (Claude Code, Claude Opus 5.5), not by senjinthedragon personally. ## What and why As in Iris, the block outline is now drawn by the pack's `gbuffers_line`, else `gbuffers_basic`, through the pack's own transform; the game draws its own only when the pack has neither. The edges are the game's outline buffer, one instance per edge, widened in screen space after the pack's transform the way terrain.wgsl's `outline_clip` does. Without it, a pack that renders the world into part of its buffers and scales it up (SEUS PTGI HRR 3) got the game's full-size outline scaled with it: a black box floating in the top right. Packs that style the outline get their look. Not covered yet: Complementary Reimagined's `gbuffers_line` widens lines itself like vanilla's line shader and needs `projectionMatrix`/`modelViewMatrix`, `vaNormal` and vanilla's vertex order, which gbuffers programs don't get today. It falls back to its `gbuffers_basic` (note in the log), which looks the same as before. ## Tested SEUS PTGI HRR 3, together with #7694 (which it needs to render at all): the outline sits on the targeted block from every angle, also after frames with nothing targeted. Complementary falls back as described. `pr_ready --quick` passes. **pr_ready** (`tools/pr_ready.py --quick` on d681aa3b7791, against origin/main at 97dc1b553, 2 min 21 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +176 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (44 s) | | rustfmt | ✅ (11 s) | | clippy | ✅ (28 s) | | tests: horizon-client-render, horizon-shaders | ✅ 1325 passed (57 s) | | doc tests | ✅ 0 passed (1 s) | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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#7771
No description provided.