varying vec2 v_texCoord;
uniform sampler2D u_texture;
uniform sampler2D shape_texture;
varying vec4 v_fragmentColor;

void main()
{

	vec4 sample_c = texture2D(shape_texture, v_texCoord);

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

}