[PR #7910] Shader packs: honor the rain.depth write policy #7893

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7910
Author: @gigamans442
Created: 11/3/2026
Status: 🔄 Open

Base: main ← Head: fix/shader-stage-weather-20261102


📝 Commits (1)

  • 34e17cb Shader packs: honor the rain.depth write policy

📊 Changes

3 files changed (+418 additions, -1 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx/pack_post.rs (+4 -1)
➕ crates/horizon-client-render/src/gfx/pack_post/weather_depth_test.rs (+388 -0)
📝 crates/horizon-shaders/src/post.rs (+26 -0)

📄 Description

🤖 Opened by gigamans442's AI agent (Codex, gpt-6.1-sol), not by gigamans442 personally.

What and why

Fixes #7894.

Rain and snow depth-test against the scene but leave its depth unchanged by default and with rain.depth=false. rain.depth=true enables weather writes to depthtex0. Opaque depthtex1/depthtex2 snapshots retain their existing timing.

Original 16×16 production-input GPU controls on Intel Arc A770 / Vulkan expose the baseline: seeded opaque GL depth .7 and weather .1 produce RGB (.1,.7,.7) for both default and false, rather than (.7,.7,.7). Each failing control has 256/256 wrong pixels; the true control passes. The fix adds parser default/false/true/invalid coverage and rain/snow GPU controls. Fixed results will be added after their queued run completes.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Standard shader packs are not a vanilla 26.3 feature. This follows the public rain.depth format documentation, using original fixed-depth geometry and independent expected pixels.

Other projects' code

Cross-referenced shader-pack features with Horizon to identify compatibility gaps. Implementation and regression shaders are original, using Horizon's MIT source/APIs and public format documentation; no external implementation or shader-pack code is copied.

Self-check

Public-tree and diff whitespace checks pass. Focused fix/composition checks are queued under the shared build lock. The broad local pr_ready wrapper was still waiting and had not started when deferred to let the focused wave finish; it generated no check block and is not a pass. Required checks and exact-head CI will be recorded before review readiness.

The first sandboxed GPU attempt selected GL llvmpipe and failed its unsupported depth textureLoad pipeline before pixels; it is retained as a non-pass. The Vulkan baseline above uses the actual Arc GPU. No player game, installed build, settings or worlds were changed. Named-pack visual acceptance and performance remain untested.

Screenshots

The regression uses synthetic pixel readback. No in-game before/after screenshot is claimed.

🤖 Generated with Codex


🔄 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/7910 **Author:** [@gigamans442](https://github.com/gigamans442) **Created:** 11/3/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/shader-stage-weather-20261102` --- ### 📝 Commits (1) - [`34e17cb`](https://github.com/horizon-rust/horizon/commit/34e17cb761b76d5784b253bb2f3e184537560ebe) Shader packs: honor the rain.depth write policy ### 📊 Changes **3 files changed** (+418 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx/pack_post.rs` (+4 -1) ➕ `crates/horizon-client-render/src/gfx/pack_post/weather_depth_test.rs` (+388 -0) 📝 `crates/horizon-shaders/src/post.rs` (+26 -0) </details> ### 📄 Description > 🤖 Opened by gigamans442's AI agent (Codex, gpt-6.1-sol), not by gigamans442 personally. ## What and why Fixes #7894. Rain and snow depth-test against the scene but leave its depth unchanged by default and with `rain.depth=false`. `rain.depth=true` enables weather writes to depthtex0. Opaque depthtex1/depthtex2 snapshots retain their existing timing. Original 16×16 production-input GPU controls on Intel Arc A770 / Vulkan expose the baseline: seeded opaque GL depth .7 and weather .1 produce RGB (.1,.7,.7) for both default and false, rather than (.7,.7,.7). Each failing control has 256/256 wrong pixels; the true control passes. The fix adds parser default/false/true/invalid coverage and rain/snow GPU controls. Fixed results will be added after their queued run completes. ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [x] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Standard shader packs are not a vanilla 26.3 feature. This follows the public [rain.depth format documentation](https://shaders.properties/current/reference/shadersproperties/rendering/#raindepth), using original fixed-depth geometry and independent expected pixels. ## Other projects' code Cross-referenced shader-pack features with Horizon to identify compatibility gaps. Implementation and regression shaders are original, using Horizon's MIT source/APIs and public format documentation; no external implementation or shader-pack code is copied. ## Self-check Public-tree and diff whitespace checks pass. Focused fix/composition checks are queued under the shared build lock. The broad local pr_ready wrapper was still waiting and had not started when deferred to let the focused wave finish; it generated no check block and is not a pass. Required checks and exact-head CI will be recorded before review readiness. The first sandboxed GPU attempt selected GL llvmpipe and failed its unsupported depth textureLoad pipeline before pixels; it is retained as a non-pass. The Vulkan baseline above uses the actual Arc GPU. No player game, installed build, settings or worlds were changed. Named-pack visual acceptance and performance remain untested. ## Screenshots The regression uses synthetic pixel readback. No in-game before/after screenshot is claimed. 🤖 Generated with [Codex](https://openai.com/codex/) --- <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#7893
No description provided.