Use the texture matrix

This commit is contained in:
scrawl 2016-02-17 02:46:47 +01:00
parent 3e854a84a2
commit e845c576d4

View file

@ -51,7 +51,7 @@ void main(void)
vec3 viewNormal = normalize((gl_NormalMatrix * gl_Normal).xyz);
#if @diffuseMap
diffuseMapUV = gl_MultiTexCoord@diffuseMapUV.xy;
diffuseMapUV = (gl_TextureMatrix[@diffuseMapUV] * gl_MultiTexCoord@diffuseMapUV).xy;
#endif
lighting = doLighting(viewPos.xyz, viewNormal, gl_Color.xyz);