]> git.sur5r.net Git - fstl/blob - gl/colored_lines.vert
New upstream version 0.10.0
[fstl] / gl / colored_lines.vert
1 #version 120
2 attribute vec3 vertex_position;
3 attribute vec3 vertex_color;
4
5 uniform mat4 transform_matrix;
6 uniform mat4 view_matrix;
7
8 varying vec3 frag_color;
9
10 void main() {
11     gl_Position = view_matrix*transform_matrix*
12         vec4(vertex_position, 1.0);
13     frag_color = vertex_color;
14 }