[i18n] Updated POT and PO files.
[0ad.git] / binaries / data / mods / public / shaders / glsl / minimap.vs
blob55c9b7fa7001ad24e53b7a36376f6f1f41134d37
1 #version 110
3 #include "minimap.h"
5 #include "common/vertex.h"
7 VERTEX_INPUT_ATTRIBUTE(0, vec2, a_vertex);
8 #if MINIMAP_BASE || MINIMAP_LOS
9 VERTEX_INPUT_ATTRIBUTE(1, vec2, a_uv0);
10 #endif
11 #if MINIMAP_POINT
12 VERTEX_INPUT_ATTRIBUTE(1, vec3, a_color);
13 #if USE_GPU_INSTANCING
14 VERTEX_INPUT_ATTRIBUTE(2, vec2, a_uv1);
15 #endif
16 #endif
18 void main()
20 #if MINIMAP_BASE || MINIMAP_LOS
21         vec2 position = a_vertex;
22         v_tex = mat2(textureTransform.xy, textureTransform.zw) * a_uv0 + translation.zw;
23 #endif
25 #if MINIMAP_POINT
26 #if USE_GPU_INSTANCING
27         vec2 position = a_vertex * width + a_uv1;
28 #else
29         vec2 position = a_vertex;
30 #endif
31         color = a_color;
32 #endif // MINIMAP_POINT
34         OUTPUT_VERTEX_POSITION(vec4(mat2(transform.xy, transform.zw) * position + translation.xy, 0.0, 1.0));