summaryrefslogtreecommitdiff
path: root/src/shader/icon.vertex.glsl
blob: 51b378f3fdeb97096b1a8da4191168458af620a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
attribute vec2 a_pos;
attribute vec2 a_tex;

uniform mat4 u_matrix;
uniform float u_size;

varying vec2 v_tex;

void main() {
    gl_Position = u_matrix * vec4(a_pos, 0, 1);
    gl_PointSize = u_size;
    v_tex = a_tex;
}