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