1 2 3 4 5 6 7 8 9 10 11 12
#version 330 core in vec4 position; out vec2 TexCoords; void main() { gl_Position = vec4(position.xy, 0.0, 1.0); TexCoords = position.zw; }