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

11 lines
256 B
GLSL

attribute vec4 a_position;
attribute vec2 a_texCoord;
uniform float offset;
varying vec2 v_texture_coord;
void main(void)
{
gl_Position = CC_MVPMatrix * a_position;
v_texture_coord = a_texCoord;
v_texture_coord.y = (1.0 - v_texture_coord.y);
}