axmol/tests/cpp-tests/Resources/Sprite3DTest/cylinder.vert

11 lines
256 B
GLSL
Raw Normal View History

2014-11-12 17:44:19 +08:00
attribute vec4 a_position;
attribute vec2 a_texCoord;
uniform float offset;
2014-12-19 15:31:06 +08:00
varying vec2 v_texture_coord;
2014-11-12 17:44:19 +08:00
void main(void)
{
gl_Position = CC_MVPMatrix * a_position;
2014-12-19 15:31:06 +08:00
v_texture_coord = a_texCoord;
v_texture_coord.y = (1.0 - v_texture_coord.y);
2014-11-12 17:44:19 +08:00
}