trippy-cube/shaders/vert_shader.glsl
Nicolás Ortega Froysa 6e80cc759f
Added sources.
2018-10-25 16:19:07 +02:00

14 lines
215 B
GLSL

#version 330 core
layout(location = 0) in vec3 vert_pos;
layout(location = 1) in vec3 vert_col;
uniform mat4 MVP;
out vec3 frag_col;
void main() {
gl_Position = MVP * vec4(vert_pos, 1);
frag_col = vert_col;
}