]> git.sur5r.net Git - fstl/blob - mesh.vert
e60e76bb8356e20146a44dc828d95dcf83914fba
[fstl] / 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 }