How can the fixed-function equivalent of texture matrices be implemented in GLSL? I was under the impression that having in the vertex shader a
would be enough, but apparently it isn't (texture gets stretched very differently on the mesh when the shader is active)... what am I missing?Code :gl_TexCoord[0] = gl_TextureMatrix[0]*glMultiTexCoord0;



