Browse Source

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

fixes #9481
master
Danila Shutov 1 week ago
parent
commit
ca646487f2
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      client/shaders/object_shader/opengl_vertex.glsl

+ 1
- 1
client/shaders/object_shader/opengl_vertex.glsl View File

@@ -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;

Loading…
Cancel
Save