#version 400 

uniform mat4 proj;
uniform mat4 model;

layout(location = 0) in vec3 vertex;
layout(location = 1) in vec2 texcoord;

out vec2 fragTexCoord;

// This is the actual code that is executed.
void main( void )
{
  fragTexCoord = texcoord;
  gl_Position = proj * ( model * vec4( vertex, 1.0f ) ); 
}