varying vec2 v_texCoord;
//uniform vec2 tex_resolution;
//uniform vec2 gui_resolution;
uniform sampler2D u_texture;
uniform sampler2D gui_texture;
varying vec4 v_fragmentColor;

void main(){

	vec4 sample = texture2D(gui_texture, v_texCoord);

	if(sample.r > 0 || sample.g > 0 || sample.b > 0)
	{
		vec4 color = texture2D(u_texture, v_texCoord);
		gl_FragColor = color;
		
	}else
	{
		gl_FragColor = vec4(0);
	}
	
}