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

Shadows and underwater texture don't transition smoothly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 24w40a, 1.21.2 Pre-Release 1, 1.21.2 Pre-Release 2, 1.21.2 Pre-Release 3, 1.21.2 Pre-Release 4, 1.21.2 Release Candidate 1, 1.21.2 Release Candidate 2, 1.21.2, 24w44a, 1.21.3, 1.21.4 Pre-Release 2
    • None
    • Confirmed
    • Rendering
    • Normal
    • Platform

      After MC-259651 got fixed in 24w40a, entity shadows and the underwater texture now transition again when night starts or ends. Howerver, the transition is not smooth and the light level on them changes abruptly (just like blocks and entities did before Beta 1.8). This is not the case for vignette, as it progresses its own brightness based on light.

      How to reproduce:

      1. Summon or find an entity that is exposed to the sky and has a shadow below it.
      2. Use command "/time set 12140" and watch the shadow as night progresses.
         The shadow doesn't fade smoothly (works better if there are no light blocks surrounding the entity)

      Possible fix:
      Use a floating point field instead of integer skyDarken so brightness increases/decreases smoothly every thick instead of updating it every few seconds. / Use light map coordinates instead of brightness value for these textures when possible.

            Fantastime [Mojang] Maxime Lebrot
            ISRosillo14 Ismael Rosillo
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: