/* This is free and unencumbered software released into the public domain. To the extent possible under law, the author of this file waives all copyright and related or neighboring rights to it. */ precision mediump float; varying vec2 fTexCoord; varying vec4 fColor; uniform sampler2D tex; void main(void) { gl_FragColor = vec4(fColor.rgb * fColor.a, fColor.a) * texture2D(tex, fTexCoord); }