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
Samuel Gerkin
YouTube
I coded a Minecraft Shader with Distant Horizons - Code Your Own Sh...
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
ShaderDoc/dh-support.md at master ยท IrisShaders/ShaderDoc
Documentation of Minecraft shaders. Contribute to IrisShaders/ShaderDoc development by creating an account on GitHub.
Solution:Jump to 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.4 Replies
in case you're curious, this is the vertex shader that breaks:
You should probably ask in the shaderlabs server https://discord.gg/RpzWN9S
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.It worked thank you so much