mojira.dev
MC-298225

Shapes appear in the end sky with certain distance settings

The bug

When using a render distance of 2 and a cloud distance of 10 or less, shapes of the same color as the end fog can be seen at the edges and corners of the end skybox.

Steps to reproduce

  1. Join a world with commands enabled.

  2. Run the following command to teleport to the end dimension:

    /execute in minecraft:the_end run tp 0 64 0
  3. Run the following command to end the dragon fight:

    /kill @e[type=minecraft:ender_dragon]
  4. Navigate to your video settings and set your render distance to 2 and your cloud distance to 10 or less.

  5. Optionally, run the following command to increase the visibility of the end fog:

    /effect give @s minecraft:night_vision infinite 0 true
  6. Observe the edges and corners of the end skybox.

Expected behavior

The end skybox would be fully visible at all times, as was the case in 25w16a.

Linked issues

Attachments

Comments 1

I looked into this in order to fix it in one of my mods. With official mojang mappings, GameRenderer’s getDepthFar is the reason for this issue.

In 1.21.5, where the issue occurs:

public float getDepthFar() {
    return this.renderDistance * 4.0F;
}

In 25w16a, where the issue is fixed:

public float getDepthFar() {
    return Math.max(this.renderDistance * 4.0F, 2048.0F);
}

In 25w17a, where the issue once again occurs:

public float getDepthFar() {
    return Math.max(this.renderDistance * 4.0F, this.minecraft.options.cloudRange().get() * 16);
}

The this.minecraft.options.cloudRange().get() * 16 can be too low, and I found 11 chunks for the cloud distance setting to be the minimum for there to be no holes.

Lolo

(Unassigned)

Confirmed

Platform

Low

Rendering

25w21a

Retrieved