2015-02-11 18:14:22 +08:00
|
|
|
|
2019-03-06 17:03:16 +08:00
|
|
|
const char* CC3D_particle_vert = R"(
|
2015-02-11 18:14:22 +08:00
|
|
|
|
|
|
|
attribute vec4 a_position;
|
|
|
|
attribute vec4 a_color;
|
|
|
|
attribute vec2 a_texCoord;
|
|
|
|
|
|
|
|
varying vec2 TextureCoordOut;
|
|
|
|
varying vec4 ColorOut;
|
2019-01-30 09:35:17 +08:00
|
|
|
|
|
|
|
uniform mat4 u_PMatrix;
|
2015-02-11 18:14:22 +08:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
ColorOut = a_color;
|
|
|
|
TextureCoordOut = a_texCoord;
|
|
|
|
TextureCoordOut.y = 1.0 - TextureCoordOut.y;
|
2019-01-30 09:35:17 +08:00
|
|
|
gl_Position = u_PMatrix * a_position;
|
2015-02-11 18:14:22 +08:00
|
|
|
}
|
|
|
|
|
2019-01-30 09:35:17 +08:00
|
|
|
)";
|