Some shader uniforms (in this case ScreenSize) get loaded in on some GPUs (Nvidia 4070 in my case), but don’t on others (RX 5700 and some intel iGPUs).
The attached resourcepack (made for 1.21.5) should make all text the classic red-green UV color, but on some devices it produces a full yellow image, because ScreenSize is (0, 0)
Linked issues
is duplicated by 2
Attachments
Comments 8
The issue seems to be that the “unknown uniforms“ are missing the Uniform.glGetUniformLocation
call to get the uniform location and just use the index instead in GLProgram.setupUniforms
, which seems to not always be equal to each other.
someone made a mod which adds the GetUniformLocation
call, which fixed it for them on macos they said https://github.com/Enchanted-Games/uniform-fix/tree/v1.0
Can confirm, but the provided pack shows as made for an earlier version of Minecraft so please provide an updated version when you can.
Do you know what devices have the issue? This may aid in reproducing the issue