"# else\n"
"precision mediump float;\n"
"# endif\n"
- "uniform samplerExternalOES tex;\n"
+ "# define SAMPLER_EXTERNAL_OES samplerExternalOES\n"
"#else\n"
- "uniform sampler2D tex;\n"
+ "# define SAMPLER_EXTERNAL_OES sampler2D\n"
"#endif\n"
"varying vec4 col;\n"
+ "uniform SAMPLER_EXTERNAL_OES tex;\n"
"varying vec2 tex_c;\n"
"void main()\n"
"{\n"
"{\n"
" gl_Position = mvp * vertex;\n"
" col = color;\n"
+ " tex_c = tex_coord;\n"
"}\n";
Evas_GL_Program_Source shader_tex_external_vert_src =
{
"# else\n"
"precision mediump float;\n"
"# endif\n"
- "uniform samplerExternalOES tex;\n"
+ "# define SAMPLER_EXTERNAL_OES samplerExternalOES\n"
"#else\n"
- "uniform sampler2D tex;\n"
+ "# define SAMPLER_EXTERNAL_OES sampler2D\n"
"#endif\n"
"varying vec4 col;\n"
+ "uniform SAMPLER_EXTERNAL_OES tex;\n"
"varying vec2 tex_c;\n"
"void main()\n"
"{\n"
"{\n"
" gl_Position = mvp * vertex;\n"
" col = color;\n"
+ " tex_c = tex_coord;\n"
"}\n";
Evas_GL_Program_Source shader_tex_external_afill_vert_src =
{
"# else\n"
"precision mediump float;\n"
"# endif\n"
- "uniform samplerExternalOES tex;\n"
+ "# define SAMPLER_EXTERNAL_OES samplerExternalOES\n"
"#else\n"
- "uniform sampler2D tex;\n"
+ "# define SAMPLER_EXTERNAL_OES sampler2D\n"
"#endif\n"
+ "uniform SAMPLER_EXTERNAL_OES tex;\n"
"varying vec2 tex_c;\n"
"void main()\n"
"{\n"
"void main()\n"
"{\n"
" gl_Position = mvp * vertex;\n"
+ " tex_c = tex_coord;\n"
"}\n";
Evas_GL_Program_Source shader_tex_external_nomul_vert_src =
{
"# else\n"
"precision mediump float;\n"
"# endif\n"
- "uniform samplerExternalOES tex;\n"
+ "# define SAMPLER_EXTERNAL_OES samplerExternalOES\n"
"#else\n"
- "uniform sampler2D tex;\n"
+ "# define SAMPLER_EXTERNAL_OES sampler2D\n"
"#endif\n"
+ "uniform SAMPLER_EXTERNAL_OES tex;\n"
"varying vec2 tex_c;\n"
"void main()\n"
"{\n"
"void main()\n"
"{\n"
" gl_Position = mvp * vertex;\n"
+ " tex_c = tex_coord;\n"
"}\n";
Evas_GL_Program_Source shader_tex_external_nomul_afill_vert_src =
{
"# else\n"
"precision mediump float;\n"
"# endif\n"
- "uniform samplerExternalOES tex;\n"
+ "# define SAMPLER_EXTERNAL_OES samplerExternalOES\n"
"#else\n"
- "uniform sampler2D tex;\n"
+ "# define SAMPLER_EXTERNAL_OES sampler2D\n"
"#endif\n"
"varying vec4 col;\n"
+ "uniform SAMPLER_EXTERNAL_OES tex;\n"
+ "varying vec2 tex_c;\n"
"uniform sampler2D texm;\n"
"varying vec2 tex_m;\n"
- "varying vec2 tex_c;\n"
"void main()\n"
"{\n"
" vec4 c;\n"
"{\n"
" gl_Position = mvp * vertex;\n"
" col = color;\n"
+ " tex_c = tex_coord;\n"
" vec4 mask_Position = mvp * vertex * vec4(0.5, sign(mask_coord.w) * 0.5, 0.5, 0.5) + vec4(0.5, 0.5, 0, 0);\n"
" tex_m = mask_Position.xy * abs(mask_coord.zw) + mask_coord.xy;\n"
"}\n";
"# else\n"
"precision mediump float;\n"
"# endif\n"
- "uniform samplerExternalOES tex;\n"
+ "# define SAMPLER_EXTERNAL_OES samplerExternalOES\n"
"#else\n"
- "uniform sampler2D tex;\n"
+ "# define SAMPLER_EXTERNAL_OES sampler2D\n"
"#endif\n"
+ "uniform SAMPLER_EXTERNAL_OES tex;\n"
+ "varying vec2 tex_c;\n"
"uniform sampler2D texm;\n"
"varying vec2 tex_m;\n"
- "varying vec2 tex_c;\n"
"void main()\n"
"{\n"
" vec4 c;\n"
"void main()\n"
"{\n"
" gl_Position = mvp * vertex;\n"
+ " tex_c = tex_coord;\n"
" vec4 mask_Position = mvp * vertex * vec4(0.5, sign(mask_coord.w) * 0.5, 0.5, 0.5) + vec4(0.5, 0.5, 0, 0);\n"
" tex_m = mask_Position.xy * abs(mask_coord.zw) + mask_coord.xy;\n"
"}\n";