Shader includes fail to compile correctly when missing newline at end of file
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
- Download the provided resource pack, where only light.glsl is included identical to vanilla but without a newline at the end
- The game will turn black and the output log will flood with OpenGL errors
- You can edit light.glsl and add a newline at the end and reload to see that the issue is fixed
2021-03-26, 02:52 PM
2021-04-19, 10:52 AM
2021-04-19, 10:52 AM
5
6