forked from enlightenment/efl
21 lines
578 B
C
21 lines
578 B
C
"#ifdef GL_ES\n"
|
|
"precision highp float;\n"
|
|
"#endif\n"
|
|
"attribute vec4 vertex;\n"
|
|
"attribute vec2 tex_coord;\n"
|
|
"attribute vec2 tex_sample;\n"
|
|
"uniform mat4 mvp;\n"
|
|
"varying vec2 tex_c;\n"
|
|
"varying vec2 tex_s[4];\n"
|
|
"varying vec4 div_s;\n"
|
|
"void main()\n"
|
|
"{\n"
|
|
" gl_Position = mvp * vertex;\n"
|
|
" tex_c = tex_coord;\n"
|
|
" tex_s[0] = vec2(-tex_sample.x, -tex_sample.y);\n"
|
|
" tex_s[1] = vec2( tex_sample.x, -tex_sample.y);\n"
|
|
" tex_s[2] = vec2( tex_sample.x, tex_sample.y);\n"
|
|
" tex_s[3] = vec2(-tex_sample.x, tex_sample.y);\n"
|
|
" div_s = vec4(4, 4, 4, 4);\n"
|
|
"}\n"
|