mojira.dev
MC-118103

Sky color depends on absolute height in world and changes abruptly

The bug

When the camera is below minimum world height (feet at about y = -65 by default), the bottom half of the sky suddenly goes dark.

How to reproduce

Generate a void superflat world, and fly down to the void. The lower portion of the skybox will abruptly flash to black.

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

This happens when the player eye level is below net.minecraft.world.World.getHorizon() which might be done to not have a blue blackground when you are in caves. It would be good if this effect was achieved differently.

Linked issues

MC-222178 Fog in the caves Resolved MC-239036 White fog in caves Resolved MC-222657 Low render distance caves Resolved MC-236722 Vanilla surface fog "bleeds through" when exploring large unlit caves. Resolved MC-217380 Fog is too bright in caves / Can see the sky - More obvious at lower render distances Resolved

Attachments

Comments 30

@@unknown I changed the report a little bit, I hope you are fine with that.

Can confirm for MC 1.12.1.

Apparently happens at y=0 now, 20w07a.

Can still reproduce in 20w10a, but not on superflat worlds.

This also happens in buffet worlds and in the ocean.

20 more comments

Not really, when below the world, the color abruptly changes still; when in caves, it's the normal sky color (not darkened), etc.
There's more than 1 aspect to this bug.

Ah, I see. So the boundary is effectively at y=-64 now instead of y=+63, but the bug still exists? I'll update the report accordingly.

I will say that in earlier versions flying below minimum Y had its own darkening effect, which is the residual stuff from void fog. It's distinct from the black skybox of the void.

can confirm in 1.19.4 and 1.20-pre7

Confirmed in 1.21.4 prerelease 1. 

mxblue28

(Unassigned)

Confirmed

Platform

Normal

Rendering

eye-level, horizon, player, sky

Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12.1, Minecraft 18w19a, ..., 24w34a, 1.21.4 Pre-Release 1, 25w06a, 1.21.5, 25w19a

Retrieved