[PR #2385] [MERGED] Mix the sky colour toward the lightning flash tint instead of replacing it #4264

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2385
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/lightning-sky-flash


📝 Commits (1)

  • b8d0590 Lightning flash: mix the sky colour toward the flash tint instead of replacing it

📊 Changes

1 file changed (+5 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+5 -2)

📄 Description

What and why

During a lightning flash the sky colour was replaced with a fixed light blue (0.9, 0.9, 1.0), so a dark storm sky jumped to a bright pale one. Vanilla only moves the current sky colour 22% of the way to (0.8, 0.8, 1.0), after the weather has darkened it. Horizon now does the same mix.

Vanilla reference

  • ClientLevel.addEnvironmentAttributeLayers: while getSkyFlashTime() > 0, SKY_COLOR becomes ARGB.srgbLerp(0.22F, skyColor, (0.8, 0.8, 1.0)).

Self-check

cargo check -p horizon-client passes.


🔄 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/2385 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lightning-sky-flash` --- ### 📝 Commits (1) - [`b8d0590`](https://github.com/horizon-rust/horizon/commit/b8d0590d6d56d3ea14d54255d865d17c212bb880) Lightning flash: mix the sky colour toward the flash tint instead of replacing it ### 📊 Changes **1 file changed** (+5 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+5 -2) </details> ### 📄 Description ## What and why During a lightning flash the sky colour was replaced with a fixed light blue (0.9, 0.9, 1.0), so a dark storm sky jumped to a bright pale one. Vanilla only moves the current sky colour 22% of the way to (0.8, 0.8, 1.0), after the weather has darkened it. Horizon now does the same mix. ## Vanilla reference - `ClientLevel.addEnvironmentAttributeLayers`: while `getSkyFlashTime() > 0`, `SKY_COLOR` becomes `ARGB.srgbLerp(0.22F, skyColor, (0.8, 0.8, 1.0))`. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:53 +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#4264
No description provided.