#version 430 core in vec2 tPos; in vec4 gColor; uniform sampler2D tex; out vec4 fColor; void main() { fColor = gColor * texture(tex,tPos); }