summaryrefslogtreecommitdiff
path: root/advanced_opengl/8.geometry_shader/shaders/explosion.vert
blob: a79b4325b1c39e20d00810b628e0ddef46b50965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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 proj;
uniform mat4 view;
uniform mat4 model;

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