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:

dh_terrain.vsh: dh_terrain.vsh: ERROR: 0:61: 'gl_TextureMatrix' : undeclared identifier 
ERROR: 0:61: 'gl_TextureMatrix' : left of '[' is not of type array, matrix, or vector


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...
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.
Was this page helpful?