1 2 3 4 5 6 7 8 9
attribute vec2 a_pos; uniform mat4 u_matrix; uniform float u_size; void main(void) { gl_Position = u_matrix * vec4(a_pos, 0, 1); gl_PointSize = u_size; }