dungeon/assets/main.vert
2017-09-17 14:45:57 +02:00

13 lines
240 B
GLSL

#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;
}