ccShader_3D_Particle.vert 387 B

123456789101112131415161718
  1. const char* cc3D_Particle_vert = R"(
  2. attribute vec4 a_position;
  3. attribute vec4 a_color;
  4. attribute vec2 a_texCoord;
  5. varying vec2 TextureCoordOut;
  6. varying vec4 ColorOut;
  7. void main()
  8. {
  9. ColorOut = a_color;
  10. TextureCoordOut = a_texCoord;
  11. TextureCoordOut.y = 1.0 - TextureCoordOut.y;
  12. gl_Position = CC_PMatrix * a_position;
  13. }
  14. )";