Skip to content

blur menus behind the menu background blur option - #800

Merged
Purdze merged 2 commits into
masterfrom
menu-blur
Oct 27, 2026
Merged

Purdze merged 2 commits into
masterfrom
menu-blur

Conversation

@Purdze

@Purdze Purdze commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor / code cleanup
  • Performance improvement
  • Chore / tooling
  • Documentation

Summary

ports the menu background blur.

blur:

  • post_effect/blur.json's chain: three rounds of horizontal then vertical box_blur, bilinear, full resolution, run in the post effects alongside the spectator effects
  • replaces the old half-resolution gaussian (blur.rs, blur.frag) and the per-screen blur value
  • a BlurBackground marker is blurBeforeThisStratum: elements before it are blurred in place, the rest draw sharp. in game this blurs the world and the hud, like GuiRenderer.draw
  • pomme's branded frosted panels keep BlurBackdrop and sample the same blur without touching the frame

where it runs:

  • screens that blur in Screen.extractBackground push the marker: options, credits, account, server and world lists, connecting/status screens, the pause menu while shown (PauseScreen.extractBackground), and dialogs
  • the title screen, death screen, chat and containers don't

option:

  • menu background blur is a real 0-10 slider in video settings and accessibility, default 5, labelled genericValueOrOffLabel style ("OFF" at 0), saved in options.json; 0 skips the blur like extractBlurredBackground

not here:

  • back from options to the pause menu, the pause menu ignores input (already on master)
  • chat draws above blurred screens since it's built after them
  • the menu backdrop always uses inworld_menu_background; the no-level menu_background is a separate parity fix

Reference

post_effect/blur.json, box_blur.fsh, Screen, PauseScreen, GuiRenderer, Options (menuBackgroundBlurriness)

Testing

  • just client-pre-pr checks (fmt, clippy with and without the harness, client tests)
  • just ingame-test full native suite passes; new ui/menu_blur screenshots the pause menu at 5, 0 and 10 and in-game options
  • needs an eye check: title screen to options (panorama blur) and the branded main screen's frosted panels

@github-actions github-actions Bot added enhancement New feature or request refactor labels Oct 26, 2026
@Purdze
Purdze merged commit 1f382a4 into master Oct 27, 2026
15 checks passed
@Purdze
Purdze deleted the menu-blur branch October 27, 2026 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant