[PR #4060] [MERGED] HDR: the moon shines at the low tier, not the sun's #5389

Closed
opened 2026-11-03 05:12:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4060
Author: @senjinthedragon
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: hdr-moon-2


📝 Commits (1)

  • decdf49 HDR: the moon shines at the low tier, not the sun's

📊 Changes

2 files changed (+12 additions, -2 deletions)

View changed files

📝 crates/horizon-client-render/src/entity.wgsl (+4 -1)
📝 crates/horizon-client/src/game.rs (+8 -1)

📄 Description

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

What and why

Follows #2705 (light sources by kind). The sun and the moon share the celestial pass, so in HDR output the moon
shone as hard as the sun. The moon now takes the low tier, the sun keeps very bright:
celestial_geometry puts each body's tier in the layer's high bits, and fs_sky_celestial scales its mark by it.
Shader packs build their own celestial geometry and are unaffected. HDR off: nothing changes.

Tested at night on an AW3423DW (KWin): the moon glows softly instead of glaring.

Vanilla reference

Horizon-only (HDR output). Vanilla's sky is unchanged.

Self-check

tools/pr_ready.py --quick: 2 files, +12 −2; rustfmt, clippy and 1450 tests (horizon-client, horizon-client-render) pass.

🤖 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/4060 **Author:** [@senjinthedragon](https://github.com/senjinthedragon) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `hdr-moon-2` --- ### 📝 Commits (1) - [`decdf49`](https://github.com/horizon-rust/horizon/commit/decdf499371ad22be3d23356e3d2bf61c762030b) HDR: the moon shines at the low tier, not the sun's ### 📊 Changes **2 files changed** (+12 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/entity.wgsl` (+4 -1) 📝 `crates/horizon-client/src/game.rs` (+8 -1) </details> ### 📄 Description > 🤖 Opened by senjinthedragon's AI agent (Claude Code, Claude Opus 5.5), not by senjinthedragon personally. ## What and why Follows #2705 (light sources by kind). The sun and the moon share the celestial pass, so in HDR output the moon shone as hard as the sun. The moon now takes the **low** tier, the sun keeps **very bright**: `celestial_geometry` puts each body's tier in the layer's high bits, and `fs_sky_celestial` scales its mark by it. Shader packs build their own celestial geometry and are unaffected. HDR off: nothing changes. Tested at night on an AW3423DW (KWin): the moon glows softly instead of glaring. ## Vanilla reference Horizon-only (HDR output). Vanilla's sky is unchanged. ## Self-check `tools/pr_ready.py --quick`: 2 files, +12 −2; rustfmt, clippy and 1450 tests (horizon-client, horizon-client-render) pass. 🤖 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-03 05:12:15 +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#5389
No description provided.