uniform sampler2D u_texture;

varying vec2 v_texCoord;
varying vec4 v_fragmentColor;

const vec4 CIRCLE_COLOR_ORANGE =  vec4(255.0/255.0, 174.0/255.0, 0, 1);
//vec4(247.0/255.0, 159.0/255.0, 35.0/255.0,1.0);
const vec4 CIRCLE_COLOR_GREEN = vec4(19.0/255.0, 217.0/255.0, 246.0/255.0,1.0);//vec4(38.0/255.0, 146.0/255.0, 240.0/255.0,1.0);
const vec4 CIRCLE_COLOR_RED = vec4(1,0,0,1.0);

void main()
{
	vec4 color = texture2D(u_texture, v_texCoord);

  if(color.g > 0)
  {
    color = CIRCLE_COLOR_ORANGE * color.g;
  }
  else if(color.r > 0)
  {
    color = CIRCLE_COLOR_RED * color.r; 
  }
  else
  {
    color = vec4(0,0,0,0);
  }
  
  gl_FragColor = color * 0.35;

}
