Transform texture UVs with provided tex. matrix (#9515)

fixes #9481
This commit is contained in:
Danila Shutov 2020-03-17 00:57:46 +03:00 committed by GitHub
parent 5a31d56c9f
commit ca646487f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,7 +27,7 @@ float directional_ambient(vec3 normal)
void main(void)
{
gl_TexCoord[0] = gl_MultiTexCoord0;
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
gl_Position = mWorldViewProj * gl_Vertex;
vPosition = gl_Position.xyz;