[PR #6900] [MERGED] HDR: stars shine as points of light, clouds take the sky's lighting #7180

Closed
opened 2026-11-03 06:35:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6900
Author: @senjinthedragon
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: hdr-sky


📝 Commits (5)

  • ba7f538 HDR: stars shine as points of light
  • aa4e81b HDR: clouds take the sky's lighting
  • 07cdeb1 Merge branch 'hdr-clouds' into hdr-sky
  • e7cddee Merge remote-tracking branch 'origin/main' into hdr-sky
  • 6c15677 Merge main into #6900

📊 Changes

5 files changed (+48 additions, -4 deletions)

View changed files

📝 crates/horizon-client-render/src/entity.wgsl (+8 -0)
📝 crates/horizon-client-render/src/gfx.rs (+30 -0)
📝 crates/horizon-client-render/src/gfx/hdr.rs (+1 -0)
📝 crates/horizon-client-render/src/gfx/stars.rs (+4 -3)
📝 crates/horizon-client-render/src/gfx/stars.wgsl (+5 -1)

📄 Description

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

What and why

Follows #6671. Two things in the sky that HDR lighting left behind:

  • Stars shine as points of light. They're drawn with the celestial blend (src alpha, one), so their alpha couldn't carry a mark. fs_stars now premultiplies the colour itself, which draws exactly the same, and the pipeline adds it with alpha replaced, so the alpha carries the bright tier. They fade in at dusk as before.
  • Clouds take the sky's lighting. Their blending covered the sky's value, so in HDR the sky behind them got brighter and they didn't, and they looked darker against it. A second pass over the clouds, alpha only, writes the sky's value. It runs only with HDR lighting on, on both the classic and Improved Transparency paths.

HDR off is unchanged: the stars' colour is the same, and nothing reads the frame's alpha.

Tested

In game on an AW3423DW, on Linux, flipping between SDR and HDR: stars get a lift everywhere in the sky, near the moon too. Clouds lift with the sky at midday, the same with Improved Transparency on and off, and at night they're a little darker than in SDR, which helps the stars stand out. pr_ready --quick passes.

Windows and macOS untested: testers welcome.

🤖 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/6900 **Author:** [@senjinthedragon](https://github.com/senjinthedragon) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `hdr-sky` --- ### 📝 Commits (5) - [`ba7f538`](https://github.com/horizon-rust/horizon/commit/ba7f538d4886bc0e2f60bf8fef68599709c72b82) HDR: stars shine as points of light - [`aa4e81b`](https://github.com/horizon-rust/horizon/commit/aa4e81be325d20120237e4b93d6da83a28eaa800) HDR: clouds take the sky's lighting - [`07cdeb1`](https://github.com/horizon-rust/horizon/commit/07cdeb150c64f14764bfa397d85296054bf4fdd4) Merge branch 'hdr-clouds' into hdr-sky - [`e7cddee`](https://github.com/horizon-rust/horizon/commit/e7cddee501dc455ce7b0215f1783ec7c6f24f7cf) Merge remote-tracking branch 'origin/main' into hdr-sky - [`6c15677`](https://github.com/horizon-rust/horizon/commit/6c15677f21a267fe8ef0b1b4a40d68f3baba3607) Merge main into #6900 ### 📊 Changes **5 files changed** (+48 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/entity.wgsl` (+8 -0) 📝 `crates/horizon-client-render/src/gfx.rs` (+30 -0) 📝 `crates/horizon-client-render/src/gfx/hdr.rs` (+1 -0) 📝 `crates/horizon-client-render/src/gfx/stars.rs` (+4 -3) 📝 `crates/horizon-client-render/src/gfx/stars.wgsl` (+5 -1) </details> ### 📄 Description > 🤖 Opened by senjinthedragon's AI agent (Claude Code, Claude Opus 5.5), not by senjinthedragon personally. ## What and why Follows #6671. Two things in the sky that HDR lighting left behind: - **Stars shine as points of light.** They're drawn with the celestial blend (src alpha, one), so their alpha couldn't carry a mark. `fs_stars` now premultiplies the colour itself, which draws exactly the same, and the pipeline adds it with alpha replaced, so the alpha carries the bright tier. They fade in at dusk as before. - **Clouds take the sky's lighting.** Their blending covered the sky's value, so in HDR the sky behind them got brighter and they didn't, and they looked darker against it. A second pass over the clouds, alpha only, writes the sky's value. It runs only with HDR lighting on, on both the classic and Improved Transparency paths. HDR off is unchanged: the stars' colour is the same, and nothing reads the frame's alpha. ## Tested In game on an AW3423DW, on Linux, flipping between SDR and HDR: stars get a lift everywhere in the sky, near the moon too. Clouds lift with the sky at midday, the same with Improved Transparency on and off, and at night they're a little darker than in SDR, which helps the stars stand out. `pr_ready --quick` passes. Windows and macOS untested: testers welcome. 🤖 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 06:35:19 +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#7180
No description provided.