axmol/cocos/renderer/shaders/3D_particle.vert

21 lines
412 B
GLSL
Raw Normal View History

2015-02-11 18:14:22 +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;
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;
gl_Position = u_PMatrix * a_position;
2015-02-11 18:14:22 +08:00
}
)";