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-119908 Sunset and horizon looks weird below sea level Resolved MC-129349 Color of the void looks bad around Y=60 Resolved MC-158782 Floating Islands below horizon Resolved MC-184704 Floating island annoying lighting bug Resolved MC-190190 Add smooth transition in the fog between layer 61 and 62 (overworld) 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.

[Mod] redstonehelper

Apparently happens at y=0 now, 20w07a.

[Mod] redstonehelper

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

gaspoweredpick

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

Minecraft386882

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