couch/shaders/flat.vert

16 lines
255 B
GLSL
Raw Normal View History

2021-01-13 10:42:57 -06:00
#version 330 core
layout (location = 0) in vec3 pos;
layout (location = 1) in vec2 uv;
2021-01-13 10:42:57 -06:00
2021-01-13 13:17:31 -06:00
uniform mat4 MODEL;
uniform mat4 VIEW;
uniform mat4 PROJECTION;
2021-01-13 10:42:57 -06:00
out vec2 UV;
2021-01-13 10:42:57 -06:00
void main() {
2021-01-13 13:17:31 -06:00
gl_Position = PROJECTION * VIEW * MODEL * vec4(pos, 1.0);
UV = uv;
2021-01-13 10:42:57 -06:00
}