uniform sampler2D sampler0; void main (void) { vec4 texel = texture2D(sampler0, gl_TexCoord[0].st); vec3 ct = texel.rgb; float at = texel.a; vec3 cf = gl_Color.rgb; float af = gl_Color.a; gl_FragColor = vec4(ct*cf,at*af); }