I can also confirm that this is an issue. It only happens on the new Vulkan render backend.
I’ve also made a small resource pack for reproducing this exact problem. It essentially just modifies the “core/text” shader. The line that is responsible for including “minecraft:globals.glsl” essentially breaks the entire shader file, making it impossible to use globals like GameTime in the shader. As you can see in the attached video it works fine on the OpenGL backend.
(This was tested on Windows 11 with an NVIDIA GPU)
I can also confirm that this is an issue. It only happens on the new Vulkan render backend.
I’ve also made a small resource pack for reproducing this exact problem. It essentially just modifies the “core/text” shader. The line that is responsible for including “minecraft:globals.glsl” essentially breaks the entire shader file, making it impossible to use globals like GameTime in the shader. As you can see in the attached video it works fine on the OpenGL backend.
(This was tested on Windows 11 with an NVIDIA GPU)