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

Rotated block faces are shaded inconsistently

XMLWordPrintable

    • Unconfirmed
    • (Unassigned)

      Normally, the W-E sides are darker and N-S are lighter.

      When the model is rotated +/-22.5 degrees, both N-S and W-E become darker. When the model is rotated +/-45 degrees, N-S becomes darker and W-E suddenly becomes lighter.

      It would be expected that either a certain side will always be the dark one, or that the one closest to W-E would be the darkest.

      It could use the same shading method that is used in entities. Bedrock Edition has block model animations - if that's added in Java eventually, the shading would need to change smoothly when rotating. 

      There are also issues when you disable ambient occlusion and/or shade in the model. The faces that stay in the same plane will be shaded normally, but the faces that change their plane will render dark.

      I included a resource pack with the rotated models. Cobblestone is not rotated, and the planks are ordered based on rotation like this:

      Y-axis: 22.5 | 45 | -22.5 | -45 | X-axis: 22.5 | 45 | -22.5 | -45

        1. rotations.png
          rotations.png
          456 kB
        2. shade-off_ao_off.png
          shade-off_ao_off.png
          285 kB
        3. shade-off_ao-on.png
          shade-off_ao-on.png
          297 kB
        4. shade-on_ao-off.png
          shade-on_ao-off.png
          288 kB
        5. shade-on_ao-on.png
          shade-on_ao-on.png
          298 kB
        6. shading.zip
          4 kB

            Unassigned Unassigned
            jirauser631802 user-68c81 (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: