dungeon/assets/main.vert

14 lines
240 B
GLSL
Raw Normal View History

2017-09-17 13:43:13 +02:00
#version 330 core
layout(location = 0) in vec3 vertexPosition_modelspace;
layout(location = 1) in vec2 vertexUV;
uniform mat4 MVP;
out vec2 UV;
void main() {
gl_Position = MVP * vec4(vertexPosition_modelspace, 1);
UV = vertexUV;
}