#version 330 core layout(location = 0) in vec3 vPos; out vec2 UV; void main() { gl_Position = vec4(vPos, 1); UV = (vPos.xy + vec2(1,1))/2; }