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

Sky color depends on absolute height in world - sky rendering is wrong in caves

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • 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
    • None
    • Confirmed
    • Rendering
    • Normal

    Description

      The bug

      When the eyes of the player are below y = 63 (feet at about y = 61), the sky goes dark. This also happens on superflat worlds, but they are usually so low that it's hard to notice.

      How to reproduce

      Create a Customized world with Ocean or Deep Ocean as biome and a low sea level.

      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. dark_sky_1.png
          dark_sky_1.png
          1.02 MB
        3. dark_sky_2.png
          dark_sky_2.png
          885 kB
        4. MC-118103.mp4
          7.20 MB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              misterblue28 misterblue28
              Votes:
              39 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: