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

Stars are rendered after the sun and moon

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.1, 24w21b, 1.21.1, 24w35a
    • None
    • Community Consensus
    • Rendering
    • Low
    • Platform

      When the game renders celestial objects in the sky, the objects are rendered with the sun and moon rendered before the stars. This will cause stars to appear in front of the sun and moon, if a sun and moon texture is larger than usual.

      It would make more sense if the stars are rendered before the sun and moon because they are farther away from the player.

      Code analysis shows celestials are render in the order sun, moon, stars. A more logical order would be stars, sun, moon. (This would make no obvious difference with vanilla textures because the sun and moon are placed in gaps in the star field.)

      To reproduce:
      1. Enable the "Jupiter Moon" resource pack (it replaces the moon with Jupiter, also has a round sun)
      2. Create any world (I used a void world)
      3. Set time to 18000
      4. Look up and inspect Jupiter -> stars are drawn on top of the "moon"

        1. 2016-09-20_10.20.35.png
          747 kB
          bdm68
        2. image-2024-05-25-13-17-10-995.png
          198 kB
          BugTracker

            Unassigned Unassigned
            bdm68 bdm68
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: