summaryrefslogtreecommitdiff
path: root/framebuffers/shaders/cube.vs
blob: 3c11932b01585596ce9d5a85fc2a1dbbffe4a304 (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;

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

out vec2 tex_coords;

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