2015-02-11 18:14:22 +08:00
|
|
|
|
|
|
|
const char* cc3D_Particle_tex_frag = STRINGIFY(
|
|
|
|
|
2016-10-26 16:03:08 +08:00
|
|
|
#ifdef GL_ES
|
2015-02-11 18:14:22 +08:00
|
|
|
varying mediump vec2 TextureCoordOut;
|
|
|
|
varying mediump vec4 ColorOut;
|
2016-10-26 16:03:08 +08:00
|
|
|
#else
|
2015-02-11 18:14:22 +08:00
|
|
|
varying vec4 ColorOut;
|
|
|
|
varying vec2 TextureCoordOut;
|
2016-10-26 16:03:08 +08:00
|
|
|
#endif
|
2015-02-11 18:14:22 +08:00
|
|
|
uniform vec4 u_color;
|
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
|
|
|
gl_FragColor = texture2D(CC_Texture0, TextureCoordOut) * ColorOut * u_color;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
const char* cc3D_Particle_color_frag = STRINGIFY(
|
|
|
|
|
2016-10-26 16:03:08 +08:00
|
|
|
#ifdef GL_ES
|
2015-02-11 18:14:22 +08:00
|
|
|
varying mediump vec4 ColorOut;
|
2016-10-26 16:03:08 +08:00
|
|
|
#else
|
2015-02-11 18:14:22 +08:00
|
|
|
varying vec4 ColorOut;
|
2016-10-26 16:03:08 +08:00
|
|
|
#endif
|
2015-02-11 18:14:22 +08:00
|
|
|
uniform vec4 u_color;
|
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
|
|
|
gl_FragColor = ColorOut * u_color;
|
|
|
|
}
|
|
|
|
);
|