-namespace {
-
-static const char blur_fs[]=
- "uniform sampler2D source;\n"
- "uniform vec2 delta;\n"
- "uniform float factors[19];\n"
- "uniform int size;\n"
- "varying vec2 texcoord;\n"
- "void main()\n"
- "{\n"
- " gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);\n"
- " for(int i=0; i<=size*2; ++i)\n"
- " gl_FragColor += texture2D(source, texcoord+delta*float(i-size))*factors[i];\n"
- "}";
-
-static const char combine_fs[]=
- "uniform sampler2D source;\n"
- "uniform sampler2D blurred;\n"
- "uniform float strength;\n"
- "varying vec2 texcoord;\n"
- "void main()\n"
- "{\n"
- " gl_FragColor = mix(texture2D(source, texcoord), texture2D(blurred, texcoord), strength);\n"
- "}";
-
-}
-