[PR #2967] [MERGED] Apply blindness fog and hide the blocked sky #4720

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2967
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/blindness-sky-fog


📝 Commits (1)

  • f35ee16 Apply blindness fog and hide the blocked sky

📊 Changes

3 files changed (+24 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+12 -0)
📝 crates/horizon-client/src/game/render_tick.rs (+7 -2)
📝 crates/horizon-client/src/gfx.rs (+5 -6)

📄 Description

What and why

The Blindness effect did not change the fog, and the sky was still drawn through blindness, darkness, lava and powder snow. The black disc under the horizon could also appear in other dimensions.

  • The remaining time of the Blindness effect (or "infinite") now feeds the fog calculation, so the view closes in as in vanilla.
  • The sky is not drawn while Blindness or Darkness is active, or when the camera is inside lava or powder snow.
  • In the End, the black clear colour is used only while the sky is not blocked.
  • The black disc below the horizon is limited to the Overworld.

Vanilla reference

  • Camera.java:142: the fluid or effect the camera is inside.
  • LevelRenderer.java:369-371: the sky pass is skipped when the camera blocks it.
  • BlindnessFogEnvironment.java:24-45: the fog distances for Blindness.
  • FogRenderer.java:40-47: which fog environment applies.
  • SkyRenderer.java:113-128,324-326: the sky pass and the dark disc conditions.

Self-check

clippy and fmt passed for horizon-client before the rebase onto current main, which was clean. Not run in game.


🔄 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/2967 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/blindness-sky-fog` --- ### 📝 Commits (1) - [`f35ee16`](https://github.com/horizon-rust/horizon/commit/f35ee164128f73166c7be610e866c0911fcc8d6c) Apply blindness fog and hide the blocked sky ### 📊 Changes **3 files changed** (+24 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+12 -0) 📝 `crates/horizon-client/src/game/render_tick.rs` (+7 -2) 📝 `crates/horizon-client/src/gfx.rs` (+5 -6) </details> ### 📄 Description ## What and why The Blindness effect did not change the fog, and the sky was still drawn through blindness, darkness, lava and powder snow. The black disc under the horizon could also appear in other dimensions. - The remaining time of the Blindness effect (or "infinite") now feeds the fog calculation, so the view closes in as in vanilla. - The sky is not drawn while Blindness or Darkness is active, or when the camera is inside lava or powder snow. - In the End, the black clear colour is used only while the sky is not blocked. - The black disc below the horizon is limited to the Overworld. ## Vanilla reference - `Camera.java:142`: the fluid or effect the camera is inside. - `LevelRenderer.java:369-371`: the sky pass is skipped when the camera blocks it. - `BlindnessFogEnvironment.java:24-45`: the fog distances for Blindness. - `FogRenderer.java:40-47`: which fog environment applies. - `SkyRenderer.java:113-128,324-326`: the sky pass and the dark disc conditions. ## Self-check clippy and fmt passed for horizon-client before the rebase onto current main, which was clean. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:27 +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#4720
No description provided.