UNPKG

198 BPlain TextView Raw
1uniform mat4 u_matrix;
2
3attribute vec2 a_pos;
4attribute vec2 a_texture_pos;
5
6varying vec2 v_pos;
7
8void main() {
9 gl_Position = u_matrix * vec4(a_pos, 0, 1);
10 v_pos = a_texture_pos / 8192.0;
11}