2011-08-23 08:13:40 -07:00
|
|
|
"#ifdef GL_ES\n"
|
2011-10-05 02:52:08 -07:00
|
|
|
"precision highp float;\n"
|
2011-08-23 08:13:40 -07:00
|
|
|
"#endif\n"
|
|
|
|
"attribute vec4 vertex;\n"
|
|
|
|
"attribute vec2 tex_coord, tex_coord2;\n"
|
|
|
|
"uniform mat4 mvp;\n"
|
|
|
|
"varying vec2 tex_c, tex_cuv;\n"
|
|
|
|
"void main()\n"
|
|
|
|
"{\n"
|
|
|
|
" gl_Position = mvp * vertex;\n"
|
|
|
|
" tex_c = tex_coord;\n"
|
|
|
|
" tex_cuv = vec2(tex_coord2.x * 0.5, tex_coord2.y);\n"
|
|
|
|
"}\n"
|