ccShader_3D_Particle.frag 530 B

1234567891011121314151617181920212223242526272829303132
  1. const char* cc3D_Particle_tex_frag = R"(
  2. #ifdef GL_ES
  3. varying mediump vec2 TextureCoordOut;
  4. varying mediump vec4 ColorOut;
  5. #else
  6. varying vec4 ColorOut;
  7. varying vec2 TextureCoordOut;
  8. #endif
  9. uniform vec4 u_color;
  10. void main(void)
  11. {
  12. gl_FragColor = texture2D(CC_Texture0, TextureCoordOut) * ColorOut * u_color;
  13. }
  14. )";
  15. const char* cc3D_Particle_color_frag = R"(
  16. #ifdef GL_ES
  17. varying mediump vec4 ColorOut;
  18. #else
  19. varying vec4 ColorOut;
  20. #endif
  21. uniform vec4 u_color;
  22. void main(void)
  23. {
  24. gl_FragColor = ColorOut * u_color;
  25. }
  26. )";