2018-02-26 11:45:53 +01:00
|
|
|
#version 140
|
2018-02-23 17:35:39 +01:00
|
|
|
|
2018-02-26 11:45:53 +01:00
|
|
|
in vec3 vertex;
|
2018-02-26 14:59:32 +01:00
|
|
|
in vec2 tex_coords;
|
|
|
|
|
|
|
|
uniform mat4 perspective;
|
|
|
|
uniform mat4 view;
|
|
|
|
|
|
|
|
out vec2 v_tex_coords;
|
2018-02-23 17:35:39 +01:00
|
|
|
|
2018-02-26 11:45:53 +01:00
|
|
|
void main() {
|
2018-02-26 14:59:32 +01:00
|
|
|
v_tex_coords = tex_coords;
|
|
|
|
gl_Position = perspective * view * vec4(vertex, 1.0);
|
2018-02-23 17:35:39 +01:00
|
|
|
}
|