1 2 3 4 5 6 7 8 9 10 11
#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; }