ttt3d/assets/shaders/vertex_shader.glsl
2018-12-17 14:22:23 +01:00

10 lines
185 B
GLSL

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