#version 450

layout (location = 0) in vec4 vposition;
layout (location = 1) in vec4 vtexcoord;
layout (location = 2) in vec4 vnormal;
layout (location = 3) in vec4 vcolor;

layout (location = 0) out vec4 v_normal;
layout (location = 1) out vec4 v_uv;


void main()
{
  gl_Position = vposition;
  
  // GL->VK conventions
  //gl_Position.y = -gl_Position.y;
  //gl_Position.z = (gl_Position.z + gl_Position.w) / 2.0;
  //gl_Position.x = gl_Position.x / 2.0;
  //float z = gl_Position.z;
  //gl_Position.z = gl_Position.y;
  
  v_normal = vnormal;
  v_uv = vtexcoord;
}
