trippy-cube/shaders/vert_shader.glsl

14 lines
215 B
Plaintext
Raw Normal View History

2018-10-25 14:19:07 +00:00
#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;
}