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

out VS_OUT {
    vec2 gtex_coords;
} vs_out;

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

void
main(void)
{
    vs_out.gtex_coords = atex_coords;
    gl_Position = projection*view*model*vec4(apos, 1.0f);
}