1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#version 140 in vec3 position; in vec2 tex_coords; in vec4 color; out vec2 v_tex_coords; out vec4 v_color; uniform mat4 projection; void main() { v_tex_coords = tex_coords; v_color = color; gl_Position = projection * vec4(position, 1.0); }