#version 330 core layout(location = 0) in vec2 pos; layout(location = 1) in vec2 uv; //out vec2 UV; out vec4 fragColor; uniform mat4 MVP; void main() { //gl_Position = //vec4( pos.x, pos.y, 0, 1); //UV = uv; fragColor.x = gl_Position.x; fragColor.y = gl_Position.y; fragColor.z = gl_Position.z; fragColor.w = 1; }