Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-118103

Sky color depends on absolute height in world and changes abruptly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12 Pre-Release 7, Minecraft 1.12.1, Minecraft 18w19a, Minecraft 1.13-pre2, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w47a, Minecraft 19w05a, Minecraft 19w07a, Minecraft 19w11b, Minecraft 19w12b, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 1, 1.14.4, 19w39a, 19w40a, 19w45b, 19w46b, 1.15 Pre-release 1, 1.15 Pre-release 4, 1.15, 1.15.2, 20w06a, 20w07a, 20w10a, 20w21a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 5, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 1.16.2 Release Candidate 1, 21w06a, 21w08a, 21w08b, 21w11a, 21w13a, 21w14a, 1.17, 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w38a, 21w39a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 4, 1.18 Pre-release 5, 1.18 Pre-release 6, 1.18 Pre-release 7, 1.18 Pre-release 8, 1.18, 1.18.1, 22w03a, 22w05a, 1.18.2, 22w11a, 22w12a, 22w13a, 22w14a, 22w15a, 22w16b, 22w17a, 22w18a, 1.19 Pre-release 4, 1.19 Pre-release 5, 1.19, 22w24a, 1.19.1, 1.19.2, 22w42a
    • Confirmed
    • Rendering
    • Normal

    Description

      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.

      Attachments

        1. 2020-06-30_03.23.15.png
          2020-06-30_03.23.15.png
          363 kB
        2. 2022-01-25_15.52.02.png
          2022-01-25_15.52.02.png
          1.49 MB
        3. 2022-04-02_10.39.26.png
          2022-04-02_10.39.26.png
          1.26 MB
        4. dark_sky_1.png
          dark_sky_1.png
          1.02 MB
        5. dark_sky_2.png
          dark_sky_2.png
          885 kB
        6. MC-118103.mp4
          7.20 MB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              misterblue28 misterblue28
              Votes:
              53 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: