summaryrefslogtreecommitdiff
path: root/advanced_opengl/8.geometry_shader/shaders/basic.vs
blob: 77e8b703683d8a52a985562c01af9eed39d57f13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#version 330 core
layout(location = 0) in vec3 apos;
layout(location = 2) in vec2 atex_coords;

out vec2 tex_coords;

uniform mat4 model;
uniform mat4 view;
uniform mat4 projection;

void
main(void)
{
    gl_Position = projection*view*model*vec4(apos, 1.0);
    tex_coords = atex_coords;
}