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

uniform mat4 u_matrix;
uniform float u_size;
uniform float u_ratio;

varying vec2 v_tex;

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