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

Shader includes fail to compile correctly when missing newline at end of file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 21w16a
    • 21w11a, 21w13a
    • None
    • Confirmed
    • Rendering, Resource Packs
    • Normal

      The bug

      Shader includes located in assets/minecraft/shaders/include/ will fail to compile correctly and cause core shaders that use them to error if there is no newline at the end of the file.

      How to reproduce

      1. Download the provided resource pack, where only light.glsl is included identical to vanilla but without a newline at the end
      2. The game will turn black and the output log will flood with OpenGL errors
      3. You can edit light.glsl and add a newline at the end and reload to see that the issue is fixed

            xilefian [Mojang] Felix Jones
            onnowhere Onnowhere
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: