#version 330 core in VSOUT { vec2 texc; } vsout; out vec4 fcolor; uniform sampler2D tex0; void main(void) { fcolor = texture(tex0, vsout.texc); }