#version 120 varying vec4 v_color; varying vec2 v_texcoord; uniform sampler2D tex; void main(void) { vec4 texture = texture2D(tex,v_texcoord); gl_FragColor = v_color * texture; }