2020-08-26 18:01:32 +00:00
|
|
|
layout (location = 0) in vec2 inVertex;
|
2020-08-29 10:10:38 +00:00
|
|
|
#ifdef TW_TILE_TEXTURED
|
2023-11-04 13:51:39 +00:00
|
|
|
layout (location = 1) in uvec4 inVertexTexCoord;
|
2020-08-29 10:10:38 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
uniform mat4x2 gPos;
|
|
|
|
|
|
|
|
#ifdef TW_TILE_TEXTURED
|
|
|
|
noperspective out vec3 TexCoord;
|
|
|
|
#endif
|
2017-09-12 18:05:05 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2020-08-29 10:10:38 +00:00
|
|
|
gl_Position = vec4(gPos * vec4(inVertex, 0.0, 1.0), 0.0, 1.0);
|
|
|
|
|
|
|
|
#ifdef TW_TILE_TEXTURED
|
2023-11-04 13:51:39 +00:00
|
|
|
TexCoord = vec3(inVertexTexCoord.xyz);
|
2020-08-29 10:10:38 +00:00
|
|
|
#endif
|
2017-11-09 10:31:13 +00:00
|
|
|
}
|