[PR #347] [MERGED] Shader packs (3/3): pick a pack in Video Settings #2508

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

📋 Pull Request Information

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

Base: main ← Head: feat/shader-pack-screen


📝 Commits (2)

  • 35f78ae Shader packs: run a pack's composite stages over the world, with hot reload
  • a6047e5 Shader packs: pick a pack in Video Settings (Advanced)

📊 Changes

10 files changed (+687 additions, -27 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+6 -0)
📝 crates/horizon-client/src/game/debug_keys.rs (+1 -0)
📝 crates/horizon-client/src/game/options.rs (+8 -0)
📝 crates/horizon-client/src/game/render_tick.rs (+33 -0)
➕ crates/horizon-client/src/game/shader_packs.rs (+92 -0)
📝 crates/horizon-client/src/gfx.rs (+128 -5)
➕ crates/horizon-client/src/gfx/pack_stages.rs (+325 -0)
📝 crates/horizon-client/src/gfx/world_post.rs (+39 -20)
📝 crates/horizon-client/src/graphics.rs (+8 -1)
📝 crates/horizon-client/src/graphics_ui.rs (+47 -1)

📄 Description

What

The last slice of Horizon WGSL shader packs (docs/shader-packs.md, #333). It is stacked on #346.

Video Settings → Advanced Graphics now has a Shader Pack row, vanilla-styled like its neighbours, just before "Preferences":

  • It shows Shader Pack: Off or the pack's folder name.
  • Clicking cycles through Off and every folder in shaderpacks/ (right-click goes backwards).
  • The pick is saved as shaderPack: in horizon-graphics.txt and loads on the next frame (#346).
  • A pack that fails says why in chat and leaves the picture as it was.
  • It is off by default and not part of the presets: picking a pack keeps the current preset.
  • Description: "Redraws the world with a pack from shaderpacks/. Off is vanilla." (High cost.)

Why

Players can pick a pack in-game, as with Iris's Shader Packs screen. Before this, the only way was editing horizon-graphics.txt.

How tested

  • cargo fmt; cargo clippy --workspace --all-targets -- -D warnings is clean.
  • graphics_ui tests pass, including the new the_shader_pack_row_is_off_by_default_and_outside_presets. It checks the label "Off" and the pack name, that the row is in Advanced, and that picking a pack keeps the preset. The one-line description test passes too.
  • On the Mac mini, a release build reached Video Settings → Advanced Graphics without errors. horizon-ctl can't scroll that list, so there is no screenshot of the row itself. The pack's own screenshots are in #346.

Needs Ludovic

Nothing blocking. A quick look at the row on a real screen would be welcome. Later: a full pack screen with option sliders, as in Iris (options can be set in shaderpacks/<pack>.txt today).

🤖 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/347 **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/shader-pack-screen` --- ### 📝 Commits (2) - [`35f78ae`](https://github.com/horizon-rust/horizon/commit/35f78ae27c803e47c90d6d95ba1f0a80b54e49ee) Shader packs: run a pack's composite stages over the world, with hot reload - [`a6047e5`](https://github.com/horizon-rust/horizon/commit/a6047e59c04d8c1f12c77dfe3a1810810f950678) Shader packs: pick a pack in Video Settings (Advanced) ### 📊 Changes **10 files changed** (+687 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+6 -0) 📝 `crates/horizon-client/src/game/debug_keys.rs` (+1 -0) 📝 `crates/horizon-client/src/game/options.rs` (+8 -0) 📝 `crates/horizon-client/src/game/render_tick.rs` (+33 -0) ➕ `crates/horizon-client/src/game/shader_packs.rs` (+92 -0) 📝 `crates/horizon-client/src/gfx.rs` (+128 -5) ➕ `crates/horizon-client/src/gfx/pack_stages.rs` (+325 -0) 📝 `crates/horizon-client/src/gfx/world_post.rs` (+39 -20) 📝 `crates/horizon-client/src/graphics.rs` (+8 -1) 📝 `crates/horizon-client/src/graphics_ui.rs` (+47 -1) </details> ### 📄 Description ## What The last slice of Horizon WGSL shader packs (docs/shader-packs.md, #333). It is stacked on #346. Video Settings → Advanced Graphics now has a **Shader Pack** row, vanilla-styled like its neighbours, just before "Preferences": - It shows `Shader Pack: Off` or the pack's folder name. - Clicking cycles through Off and every folder in `shaderpacks/` (right-click goes backwards). - The pick is saved as `shaderPack:` in `horizon-graphics.txt` and loads on the next frame (#346). - A pack that fails says why in chat and leaves the picture as it was. - It is **off by default** and not part of the presets: picking a pack keeps the current preset. - Description: "Redraws the world with a pack from shaderpacks/. Off is vanilla." (High cost.) ## Why Players can pick a pack in-game, as with Iris's Shader Packs screen. Before this, the only way was editing `horizon-graphics.txt`. ## How tested - `cargo fmt`; `cargo clippy --workspace --all-targets -- -D warnings` is clean. - `graphics_ui` tests pass, including the new `the_shader_pack_row_is_off_by_default_and_outside_presets`. It checks the label "Off" and the pack name, that the row is in Advanced, and that picking a pack keeps the preset. The one-line description test passes too. - On the Mac mini, a release build reached Video Settings → Advanced Graphics without errors. `horizon-ctl` can't scroll that list, so there is no screenshot of the row itself. The pack's own screenshots are in #346. ## Needs Ludovic Nothing blocking. A quick look at the row on a real screen would be welcome. Later: a full pack screen with option sliders, as in Iris (options can be set in `shaderpacks/<pack>.txt` today). 🤖 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:46 +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#2508
No description provided.