summaryrefslogtreecommitdiff
path: root/src/mbgl/shader/box.vertex.glsl
blob: d141b13873a33d6a54d99bf7364c9c3a02537be2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
attribute vec2 a_pos;
attribute vec2 a_extrude;
attribute vec2 a_data;

uniform mat4 u_matrix;
uniform float u_scale;

varying float v_max_zoom;
varying float v_placement_zoom;

void main() {
    gl_Position = u_matrix * vec4(a_pos + a_extrude / u_scale, 0.0, 1.0);

    v_max_zoom = a_data.x;
    v_placement_zoom = a_data.y;
}