|
- #include "ccParamIO.glsl"
-
- attribute vec4 a_position;
- attribute vec2 a_texCoord;
- attribute vec4 a_color;
-
- #ifdef OPENGL_ES
- varying lowp vec4 v_fragmentColor;
- varying mediump vec2 v_texCoord;
- #else
- varying vec4 v_fragmentColor;
- varying vec2 v_texCoord;
- #endif
-
- uniform mat4 u_uvTransform;
-
- void main()
- {
- gl_Position = CC_PMatrix * a_position;
- v_fragmentColor = a_color;
-
- vec4 uv = u_uvTransform * vec4(a_texCoord.x , a_texCoord.y , 0 , 1);
- v_texCoord = uv.xy;
- }
|