[PR #7693] Shader packs: keep the cloud and weather passes on frames with nothing to draw #7766

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

📋 Pull Request Information

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

Base: main ← Head: shader-pass-keep


📝 Commits (1)

  • af641a5 Shader packs: keep the cloud and weather passes on frames with nothing to draw

📊 Changes

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

View changed files

📝 crates/horizon-client-render/src/gfx/pack_post.rs (+10 -3)

📄 Description

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

What and why

draw_clouds and draw_weather took their pass out of the pack before checking the frame had anything for it, and returned without putting it back. The first frame without rain or snow dropped the pack's gbuffers_weather for good, so a world that loads in clear weather shows no rain at all once it starts raining: not the pack's, and not the game's either. Clouds the same, after a frame with no cloud quads. Both now take the pass only when there is something to draw.

Tested

BSL 10.1.8 with its gbuffers_weather painting rain magenta (to tell it apart from the game's): /weather clear, then /weather rain. On main there is no rain at 15, 30 and 60 seconds while the game reports raining; with this, the pack's rain falls (picture: main left, this right). pr_ready --quick passes.

pr_ready (tools/pr_ready.py --quick on 196e7ba54ae7, against origin/main at 97dc1b553, 4 min 14 s)

Check Result
Scope ✅ 1 files, +10 −3
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (45 s)
rustfmt ✅ (11 s)
clippy ✅ (1 min 46 s)
tests: horizon-client-render ✅ 1170 passed (1 min 31 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/7693 **Author:** [@senjinthedragon](https://github.com/senjinthedragon) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `shader-pass-keep` --- ### 📝 Commits (1) - [`af641a5`](https://github.com/horizon-rust/horizon/commit/af641a51396dcb7036291702fa6e06dcfb8cd695) Shader packs: keep the cloud and weather passes on frames with nothing to draw ### 📊 Changes **1 file changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx/pack_post.rs` (+10 -3) </details> ### 📄 Description > 🤖 Opened by senjinthedragon's AI agent (Claude Code, Claude Opus 5.5), not by senjinthedragon personally. ## What and why draw_clouds and draw_weather took their pass out of the pack before checking the frame had anything for it, and returned without putting it back. The first frame without rain or snow dropped the pack's gbuffers_weather for good, so a world that loads in clear weather shows no rain at all once it starts raining: not the pack's, and not the game's either. Clouds the same, after a frame with no cloud quads. Both now take the pass only when there is something to draw. ## Tested BSL 10.1.8 with its gbuffers_weather painting rain magenta (to tell it apart from the game's): `/weather clear`, then `/weather rain`. On main there is no rain at 15, 30 and 60 seconds while the game reports raining; with this, the pack's rain falls (picture: main left, this right). `pr_ready --quick` passes. **pr_ready** (`tools/pr_ready.py --quick` on 196e7ba54ae7, against origin/main at 97dc1b553, 4 min 14 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +10 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (45 s) | | rustfmt | ✅ (11 s) | | clippy | ✅ (1 min 46 s) | | tests: horizon-client-render | ✅ 1170 passed (1 min 31 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#7766
No description provided.