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;
varying vec2 TextureCoordOut;
void main(void)
{
gl_Position = CC_MVPMatrix * a_position;
TextureCoordOut = a_texCoord;
TextureCoordOut.y = (1.0 - TextureCoordOut.y);
}