#version 330 core layout(location = 0) in vec3 apos; out vec3 tex_coords; layout(std140) uniform Matrices { uniform mat4 projection; uniform mat4 view; }; void main(void) { tex_coords = apos; vec4 pos = projection*view*vec4(apos, 1.0f); gl_Position = pos.xyww; }