#version 400 core

uniform mat4 modelMatrix;
uniform mat4 viewMatrix;
uniform mat4 projMatrix;

uniform vec3 color;

in vec3 position;

out Vertex
{
    vec3 color;
}
vertex;

void main ()
{
    gl_Position = projMatrix * viewMatrix * modelMatrix * vec4 (position, 1);
    vertex.color = color;
}
