Skip to content

gl_MultiTexCoord0

gl_MultiTexCoord0

Valid Programs: gbuffers_*.vsh, shadow.vsh, any composite-style pass.


The vertex texture coordinate attribute.

Usually the coordinate in gl_MultiTexCoord0 corresponds directly to the atlas texture coordinate, however some geometry (such as enchantment glint) requires a texture matrix. Therefore, it is always recommended to use gl_TextureMatrix[0].

vec2 coord = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;

in vec2 vaUV0;

It is always recommended to use textureMatrix.

vec2 coord = (textureMatrix * vec4(vaUV0, 0.0, 1.0)).xy;