mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
19 lines
305 B
GLSL
Executable File
19 lines
305 B
GLSL
Executable File
|
|
const char* ccGraphicsVert = STRINGIFY(
|
|
attribute vec4 a_position;
|
|
attribute vec2 a_texCoord;
|
|
|
|
\n#ifdef GL_ES\n
|
|
varying mediump vec2 v_texCoord;
|
|
\n#else\n
|
|
varying vec2 v_texCoord;
|
|
\n#endif\n
|
|
|
|
void main()
|
|
{
|
|
gl_Position = CC_MVPMatrix * a_position;
|
|
v_texCoord = a_texCoord;
|
|
}
|
|
|
|
);
|