gl_TextureMatrix doesn't exist
I'm trying to make my first shader following this tutorial, and I want to add Distant Horizons support
According to the video and the iris docs DH uses gl_MultiTexCoord2, which according to the video, requires gl_TextureMatrix[2].
However, according to minecraft, that doesn't exist, as it gives me this error:
please help me I have no idea what I'm doing
According to the video and the iris docs DH uses gl_MultiTexCoord2, which according to the video, requires gl_TextureMatrix[2].
However, according to minecraft, that doesn't exist, as it gives me this error:
please help me I have no idea what I'm doing
YouTubeSamuel Gerkin
Support future videos! :)
https://buymeacoffee.com/samuelgerkin
Learn from the ground up how to code a Minecraft shader with GLSL! Or just come along for the ride to see what goes into reimagining Minecraft's visuals!
Theme Song “Sam with a Plan” by
Hunter Gerkin
https://huntergerkin.bandcamp.com
Other music courtesy of Mojang Studios
Th...
https://buymeacoffee.com/samuelgerkin
Learn from the ground up how to code a Minecraft shader with GLSL! Or just come along for the ride to see what goes into reimagining Minecraft's visuals!
Theme Song “Sam with a Plan” by
Hunter Gerkin
https://huntergerkin.bandcamp.com
Other music courtesy of Mojang Studios
Th...

GitHub
Documentation of Minecraft shaders. Contribute to IrisShaders/ShaderDoc development by creating an account on GitHub.
Solution
There is no
gl_TextureMatrix[2], as such, you should use gl_TextureMatrix[1] * gl_MultiTexCoord1 instead. See the pinned comment in that same video you linked for the errata.