You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
294 B

  1. #include "ccParamIO.glsl"
  2. #ifdef OPENGL_ES
  3. precision lowp float;
  4. #endif
  5. varying vec4 v_fragmentColor;
  6. varying vec2 v_texCoord;
  7. uniform vec4 u_color;
  8. void main()
  9. {
  10. vec4 texColor = v_fragmentColor * texture2D(CC_Texture0, v_texCoord);
  11. gl_FragColor = texColor + u_color * texColor.a;
  12. }