[PR #299] [MERGED] Blur the panorama behind world selection, multiplayer and world creation, as vanilla does #2467

Closed
opened 2026-11-02 15:56:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/299
Author: @ludovic111
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @ludovic111

Base: main ← Head: feat/menu-blur


📝 Commits (1)

  • 6953710 Blur the panorama behind the title menus' screens, as vanilla does (#282)

📊 Changes

7 files changed (+325 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+13 -0)
📝 crates/horizon-client/src/gfx.rs (+23 -0)
📝 crates/horizon-client/src/lib.rs (+1 -0)
➕ crates/horizon-client/src/menu_blur.rs (+249 -0)
➕ crates/horizon-client/src/menu_blur.wgsl (+32 -0)
📝 crates/horizon-client/src/multiplayer.rs (+1 -1)
📝 crates/horizon-client/src/title.rs (+6 -6)

📄 Description

Thanks to Cosmic (@Online5277) for #282: the panorama wasn't blurred behind world selection, multiplayer server selection and world creation.

What

  • Vanilla's blur: menu_blur.rs + menu_blur.wgsl port GameRenderer.processBlurEffect with the minecraft:blur post chain: three rounds of a horizontal then vertical post/box_blur pass (2·R + 1 pixels per direction, two pixels per linear sample, a half-weight last sample). R is menuBackgroundBlurriness in framebuffer pixels (default 5, the existing Accessibility slider; 0 turns it off, as vanilla's >= 1 check does). Like vanilla's main target, it works on the frame's gamma-encoded values (the non-sRGB view).
  • Where: Screen.extractBlurredBackground runs for every screen but TitleScreen. Here that means every classic title-menu screen except the title itself (world selection, creation, edit/delete/backup, multiplayer and its sub-screens), plus Options opened from the title. The Horizon style keeps its own backdrop.
  • Menu background: those screens now draw menu_background over the blur (Screen.extractMenuBackground), not a flat rgba(0,0,0,120) fill.

In-world screens (pause, options in game) blur the world in vanilla too. That is left for a follow-up: vanilla blurs the HUD with the world, and Horizon draws the HUD in the same pass as the screen.

Screenshots

The prepared resources here only have the client JAR's 1×1 panorama placeholders (horizon-prepare panorama needs a vanilla launcher install, and there's none on the Mac mini), so these use a synthetic checkerboard panorama in a scratch resources overlay. That makes the blur easy to see: the title is sharp; Create New World, Multiplayer and Options are blurred, with menu_background over them.

Self-check

cargo fmt --all -- --check                                   ok
cargo clippy --workspace --all-targets -- -D warnings        ok
cargo test -p horizon-client --lib menu_blur                 ok (WGSL validates with naga)
parity harnesses (tools/parity.py --changed origin/main, once on the stack tip dc863a66 = #299+#301+#303+#304)
                                             79 passed; light first hit a port already in use by another session's server, passed on rerun

Part of #282

🤖 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/299 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/menu-blur` --- ### 📝 Commits (1) - [`6953710`](https://github.com/horizon-rust/horizon/commit/6953710c74fccbde4c7d928c3a577d11e3501610) Blur the panorama behind the title menus' screens, as vanilla does (#282) ### 📊 Changes **7 files changed** (+325 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+13 -0) 📝 `crates/horizon-client/src/gfx.rs` (+23 -0) 📝 `crates/horizon-client/src/lib.rs` (+1 -0) ➕ `crates/horizon-client/src/menu_blur.rs` (+249 -0) ➕ `crates/horizon-client/src/menu_blur.wgsl` (+32 -0) 📝 `crates/horizon-client/src/multiplayer.rs` (+1 -1) 📝 `crates/horizon-client/src/title.rs` (+6 -6) </details> ### 📄 Description Thanks to **Cosmic (@Online5277)** for #282: the panorama wasn't blurred behind world selection, multiplayer server selection and world creation. ## What - **Vanilla's blur:** `menu_blur.rs` + `menu_blur.wgsl` port `GameRenderer.processBlurEffect` with the `minecraft:blur` post chain: three rounds of a horizontal then vertical `post/box_blur` pass (2·R + 1 pixels per direction, two pixels per linear sample, a half-weight last sample). R is `menuBackgroundBlurriness` in framebuffer pixels (default 5, the existing Accessibility slider; 0 turns it off, as vanilla's `>= 1` check does). Like vanilla's main target, it works on the frame's gamma-encoded values (the non-sRGB view). - **Where:** `Screen.extractBlurredBackground` runs for every screen but `TitleScreen`. Here that means every classic title-menu screen except the title itself (world selection, creation, edit/delete/backup, multiplayer and its sub-screens), plus Options opened from the title. The Horizon style keeps its own backdrop. - **Menu background:** those screens now draw `menu_background` over the blur (`Screen.extractMenuBackground`), not a flat `rgba(0,0,0,120)` fill. In-world screens (pause, options in game) blur the world in vanilla too. That is left for a follow-up: vanilla blurs the HUD with the world, and Horizon draws the HUD in the same pass as the screen. ## Screenshots The prepared resources here only have the client JAR's 1×1 panorama placeholders (`horizon-prepare panorama` needs a vanilla launcher install, and there's none on the Mac mini), so these use a synthetic checkerboard panorama in a scratch resources overlay. That makes the blur easy to see: the title is sharp; Create New World, Multiplayer and Options are blurred, with `menu_background` over them. ## Self-check ``` cargo fmt --all -- --check ok cargo clippy --workspace --all-targets -- -D warnings ok cargo test -p horizon-client --lib menu_blur ok (WGSL validates with naga) parity harnesses (tools/parity.py --changed origin/main, once on the stack tip dc863a66 = #299+#301+#303+#304) 79 passed; light first hit a port already in use by another session's server, passed on rerun ``` Part of #282 🤖 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>
bsakaguchi 2026-11-02 15:56:25 +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#2467
No description provided.