summaryrefslogtreecommitdiff
path: root/data/shaders/mesh.vert
blob: c53f5089ecb7958c9de68f6a75d825a898887153 (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 aposition;
layout(location = 2) in vec2 atexcoords;

out VSOUT {
	vec2 texcoords;
} vsout;

uniform mat4 projection;
uniform mat4 view;
uniform mat4 world;

void main(void)
{
	vsout.texcoords = atexcoords;
	gl_Position = projection*view*world*vec4(aposition, 1.0);
}