]> git.sur5r.net Git - fstl/blob - gl/mesh.vert
Imported Upstream version 0.9.2
[fstl] / gl / mesh.vert
1 #version 120
2 attribute vec3 vertex_position;
3
4 uniform mat4 transform_matrix;
5 uniform mat4 view_matrix;
6
7 varying vec3 ec_pos;
8
9 void main() {
10     gl_Position = view_matrix*transform_matrix*
11         vec4(vertex_position, 1.0);
12     ec_pos = gl_Position.xyz;
13 }