GPU: Fix texture coordinates when rendering paletted textures

This commit is contained in:
Connor McLaughlin
2019-09-14 22:47:20 +10:00
parent e40393fec4
commit 19d9322e67
5 changed files with 37 additions and 10 deletions

View File

@ -166,6 +166,7 @@ in vec2 a_tex0;
out vec4 v_col0;
#if TEXTURED
uniform vec2 u_tex_scale;
out vec2 v_tex0;
#endif
@ -178,7 +179,7 @@ void main()
v_col0 = a_col0;
#if TEXTURED
v_tex0 = vec2(a_tex0.x / 4, a_tex0.y);
v_tex0 = vec2(a_tex0 * u_tex_scale);
#endif
}
)";