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

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 21w11a, 21w13a
    • Fix Version/s: 21w16a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Rendering, Resource Packs
    • Mojang Priority:
      Normal

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              CHK: