[PR #2389] [MERGED] Use the height adjusted biome temperature for the rain and snow line on the client #4268

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

📋 Pull Request Information

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

Base: main ← Head: fix/weather-height-adjusted-temperature


📝 Commits (2)

  • 796dc32 Use the height adjusted biome temperature for the rain and snow line on the client
  • 1400da9 Merge remote-tracking branch 'origin/main' into HEAD

📊 Changes

3 files changed (+13 additions, -21 deletions)

View changed files

📝 crates/horizon-client/src/biome.rs (+7 -0)
📝 crates/horizon-client/src/game.rs (+5 -11)
📝 crates/horizon-client/src/game/render_tick.rs (+1 -10)

📄 Description

What and why

The client decided between rain and snow with a simplified formula: base temperature lowered by (y - 80) * 0.05 / 40. Vanilla also adds a noise term to the height cooling and applies the frozen temperature modifier, so the rain/snow line sat at the wrong height and varied smoothly in vanilla but not here, and Frozen Ocean never got its rain patches.

The rain and snow columns, the rain sound, and the rain splash and ambient particles now ask the same height adjusted temperature the server already uses (BiomeTemperatureSettings::height_adjusted). Biomes now keep their temperature_modifier.

Vanilla reference

  • Biome.getPrecipitationAt / coldEnoughToSnow: snow when getHeightAdjustedTemperature < 0.15.
  • Biome.getHeightAdjustedTemperature: above seaLevel + 17, temperature - (TEMPERATURE_NOISE(x / 8, z / 8) * 8 + y - snowLevel) * 0.05 / 40, after TemperatureModifier.modifyTemperature.

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/2389 **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/weather-height-adjusted-temperature` --- ### 📝 Commits (2) - [`796dc32`](https://github.com/horizon-rust/horizon/commit/796dc320d9b3ccef8c2bc949bbb0db0072ecc05d) Use the height adjusted biome temperature for the rain and snow line on the client - [`1400da9`](https://github.com/horizon-rust/horizon/commit/1400da9637da0481124d2281bd5b148a65265f9e) Merge remote-tracking branch 'origin/main' into HEAD ### 📊 Changes **3 files changed** (+13 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/biome.rs` (+7 -0) 📝 `crates/horizon-client/src/game.rs` (+5 -11) 📝 `crates/horizon-client/src/game/render_tick.rs` (+1 -10) </details> ### 📄 Description ## What and why The client decided between rain and snow with a simplified formula: base temperature lowered by `(y - 80) * 0.05 / 40`. Vanilla also adds a noise term to the height cooling and applies the frozen temperature modifier, so the rain/snow line sat at the wrong height and varied smoothly in vanilla but not here, and Frozen Ocean never got its rain patches. The rain and snow columns, the rain sound, and the rain splash and ambient particles now ask the same height adjusted temperature the server already uses (`BiomeTemperatureSettings::height_adjusted`). Biomes now keep their `temperature_modifier`. ## Vanilla reference - `Biome.getPrecipitationAt` / `coldEnoughToSnow`: snow when `getHeightAdjustedTemperature < 0.15`. - `Biome.getHeightAdjustedTemperature`: above `seaLevel + 17`, `temperature - (TEMPERATURE_NOISE(x / 8, z / 8) * 8 + y - snowLevel) * 0.05 / 40`, after `TemperatureModifier.modifyTemperature`. ## 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:55 +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#4268
No description provided.