blob: 879696f749a8faacb8302628d8399e337d6d1bfb [file] [log] [blame]
uniform vec4 u_clip_adjustment;
uniform mat3 u_view_matrix;
attribute vec2 a_position;
attribute vec4 a_color;
attribute vec2 a_offset;
varying vec4 v_color;
varying vec2 v_offset;
void main() {
vec3 pos2d = u_view_matrix * vec3(a_position, 1);
gl_Position = vec4(pos2d.xy * u_clip_adjustment.xy +
u_clip_adjustment.zw, 0, pos2d.z);
v_color = a_color;
v_offset = a_offset;
}