[PR #6669] [MERGED] HDR: fog hides light sources, animated sprites keep shining, the vignette keeps the lift #7023

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

📋 Pull Request Information

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

Base: main ← Head: hdr-fog-marks


📝 Commits (1)

  • f5be69d HDR: fog hides light sources, animated sprites keep shining, the vignette keeps the lift

📊 Changes

3 files changed (+11 additions, -4 deletions)

View changed files

📝 crates/horizon-client-render/src/entity.wgsl (+4 -1)
📝 crates/horizon-client-render/src/hdr.wgsl (+1 -1)
📝 crates/horizon-client-render/src/terrain.wgsl (+6 -2)

📄 Description

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

What and why

Three small HDR fixes, found while testing the lighting in #3472.

  • Fog hides light sources: fog turns a far pixel into the fog's colour, but a light source's mark ignored it, so the pixel was still multiplied. Fully fogged blocks stood out: glowstone seen through water since #6471, and lava in the Nether's fog. Terrain and entity marks now fade their lift with the fog.
  • Animated sprites keep shining: a sprite that shines all over (lava, fire) took its threshold from one frame of its animation, so other frames' darker pixels dropped out of the lift and showed as specks. rdbtCVS flagged this as a thing to watch on #4922. "All over" now has no threshold: the tier's window gives a smooth lift by each pixel's own brightness. Sprites whose bright parts shine keep their threshold.
  • The vignette keeps the lift: shows_world accepted an evenly darkened pixel only down to half brightness, so the vignette's far corners lost the lift at once, with a hard edge. The HUD and menus are told apart by the frame's alpha, so the check can go much lower (2%).

HDR off is unchanged: nothing reads the frame's alpha there.

Tested

In game on an AW3423DW, on Linux: glowstone above water from below, distant Nether lava in fog, lava's animation, fire, and the vignette's corners. 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/6669 **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-fog-marks` --- ### 📝 Commits (1) - [`f5be69d`](https://github.com/horizon-rust/horizon/commit/f5be69df70335c03530824efada2bc91cf159f63) HDR: fog hides light sources, animated sprites keep shining, the vignette keeps the lift ### 📊 Changes **3 files changed** (+11 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/entity.wgsl` (+4 -1) 📝 `crates/horizon-client-render/src/hdr.wgsl` (+1 -1) 📝 `crates/horizon-client-render/src/terrain.wgsl` (+6 -2) </details> ### 📄 Description > 🤖 Opened by senjinthedragon's AI agent (Claude Code, Claude Opus 5.5), not by senjinthedragon personally. ## What and why Three small HDR fixes, found while testing the lighting in #3472. - **Fog hides light sources:** fog turns a far pixel into the fog's colour, but a light source's mark ignored it, so the pixel was still multiplied. Fully fogged blocks stood out: glowstone seen through water since #6471, and lava in the Nether's fog. Terrain and entity marks now fade their lift with the fog. - **Animated sprites keep shining:** a sprite that shines all over (lava, fire) took its threshold from one frame of its animation, so other frames' darker pixels dropped out of the lift and showed as specks. rdbtCVS flagged this as a thing to watch on #4922. "All over" now has no threshold: the tier's window gives a smooth lift by each pixel's own brightness. Sprites whose bright parts shine keep their threshold. - **The vignette keeps the lift:** `shows_world` accepted an evenly darkened pixel only down to half brightness, so the vignette's far corners lost the lift at once, with a hard edge. The HUD and menus are told apart by the frame's alpha, so the check can go much lower (2%). HDR off is unchanged: nothing reads the frame's alpha there. ## Tested In game on an AW3423DW, on Linux: glowstone above water from below, distant Nether lava in fog, lava's animation, fire, and the vignette's corners. `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:32:17 +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#7023
No description provided.