vertex = ''' #version 330 in vec4 pos; in vec2 uv; out vec2 vert_uv; void main () { gl_Position = pos; vert_uv = uv; } ''' fragment = ''' #version 330 uniform sampler2D tex; layout(std140) uniform FragUniforms { vec4 tint; }; in vec2 vert_uv; void main () { gl_FragColor = texture2D(tex, vert_uv) + tint; } '''