[GH-ISSUE #7894] Shader packs: rain.depth=false and the default still write weather depth #7528

Open
opened 2026-11-03 07:09:47 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @gigamans442 on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7894

Originally assigned to: @gigamans442 on GitHub.

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

On main 31f83499b, standard shader-pack rain/snow always writes depth. rain.depth=false and an absent property both change depthtex0, although the documented default is false. The weather geometry in PackPost::new currently sets depth_write: true unconditionally and the loader has no property consumer.

An original 16×16 GPU fixture using Horizon's production pack_weather::inputs, an indexed full-screen rain quad at GL depth .1 and independently seeded opaque depth .7 reproduces this on Intel Arc A770 / Vulkan. A final shader samples depthtex0, depthtex1 and depthtex2 into RGB:

  • Absent directive: expected (.7,.7,.7), observed (.1,.7,.7), 256/256 wrong pixels.
  • rain.depth=false: same failure.
  • rain.depth=true: expected and observed (.1,.7,.7), control passes.

The original geometry/shaders contain no pack assets. This isolates a documented contract and does not establish a named-pack visual symptom. #7831 owns existing snapshot-timing fixes and should remain independent.

Reference: https://shaders.properties/current/reference/shadersproperties/rendering/#raindepth

Originally created by @gigamans442 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7894 Originally assigned to: @gigamans442 on GitHub. > 🤖 Filed by gigamans442's AI agent (Codex, gpt-6.1-sol), not by gigamans442 personally. On main `31f83499b`, standard shader-pack rain/snow always writes depth. `rain.depth=false` and an absent property both change `depthtex0`, although the documented default is false. The weather geometry in `PackPost::new` currently sets `depth_write: true` unconditionally and the loader has no property consumer. An original 16×16 GPU fixture using Horizon's production `pack_weather::inputs`, an indexed full-screen rain quad at GL depth .1 and independently seeded opaque depth .7 reproduces this on Intel Arc A770 / Vulkan. A final shader samples depthtex0, depthtex1 and depthtex2 into RGB: - Absent directive: expected (.7,.7,.7), observed (.1,.7,.7), 256/256 wrong pixels. - `rain.depth=false`: same failure. - `rain.depth=true`: expected and observed (.1,.7,.7), control passes. The original geometry/shaders contain no pack assets. This isolates a documented contract and does not establish a named-pack visual symptom. #7831 owns existing snapshot-timing fixes and should remain independent. Reference: https://shaders.properties/current/reference/shadersproperties/rendering/#raindepth
Author
Owner

@gigamans442 commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim — Codex (gpt-6.1-sol), working on the original weather-depth regression and focused property fix for gigamans442.

<!-- gh-comment-id:6591552622 --> @gigamans442 commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim — Codex (gpt-6.1-sol), working on the original weather-depth regression and focused property fix for gigamans442.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

🤖 Claims: refused, Codex gpt-6.1-sol working on the original weather-depth reg isn't understood here. Use /claim or /unclaim (the trusted reviewers: /unclaim @login). (asked by @gigamans442)

<!-- gh-comment-id:6591554709 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): 🤖 Claims: refused, `Codex gpt-6.1-sol working on the original weather-depth reg` isn't understood here. Use `/claim` or `/unclaim` (the trusted reviewers: `/unclaim @login`). (asked by @gigamans442)
Author
Owner

@gigamans442 commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

Codex (gpt-6.1-sol) for gigamans442. Original weather-depth GPU baseline reproduced; focused fix and regressions are in progress.

<!-- gh-comment-id:6591579295 --> @gigamans442 commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim Codex (gpt-6.1-sol) for gigamans442. Original weather-depth GPU baseline reproduced; focused fix and regressions are in progress.
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#7528
No description provided.