#version 120 attribute vec2 nv_position; attribute vec4 nv_color; uniform mat4 nv_projection; varying vec4 f_color; void main(void) { f_color = nv_color; gl_Position = nv_projection * vec4( nv_position.x, nv_position.y, 0.0, 1.0 ); }