#version 150

in vec4 vertex;
in vec3 normals;
in vec4 colors;

out VS_OUT
{
  vec4 fP;
  vec3 fN;
  vec4 out_color;
}vs_out;

uniform mat4 mvp_matrix;
uniform mat4 mv_matrix;
uniform mat4 norm_matrix;

void main(void)
{
   vs_out.out_color=colors;
   vs_out.fP = mv_matrix * vertex;
   vs_out.fN = mat3(norm_matrix)* normals;
   gl_Position = mvp_matrix * vertex;
}
