axmol/cocos/renderer/ccShader_3D_Particle.vert

18 lines
387 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;
void main()
{
ColorOut = a_color;
TextureCoordOut = a_texCoord;
TextureCoordOut.y = 1.0 - TextureCoordOut.y;
gl_Position = CC_PMatrix * a_position;
}
)";