1 #version 130
2
3 in vec2 vertex;
4 in vec4 color;
5 out vec4 vcolor;
6
7 uniform mat4 mvp;
8
9 void main()
10 {
11 vec4 p = mvp * vec4(vertex, 0.0f, 1.0f);
12 gl_Position = p;
13 vcolor = color;
14 }