summaryrefslogtreecommitdiff
path: root/advanced_opengl/8.geometry_shader/shaders/base.vert
blob: 5178f920e18bd1a4d71cb0867a2e5d3280eca9cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#version 330 core
layout(location = 0) in vec2 apos;
layout(location = 1) in vec3 acolor;

out VS_OUT {
    vec3 color;
} vs_out;

void main(void)
{
    vs_out.color = acolor;
    gl_Position = vec4(apos, 0.0, 1.0);
}