- " gl_FragColor=vec4(0.0, 0.0, 0.0, 0.0);\n"
- " for(int i=-size; i<=size; ++i)\n"
- " gl_FragColor+=texture2D(source, texcoord+delta*i)*factors[i+size];\n"
- "}";
-
-static const char combine_vs[]=
- "varying vec2 texcoord;\n"
- "void main()\n"
- "{\n"
- " gl_Position=vec4(gl_Vertex.xy*2.0-1.0, 0.0, 1.0);\n"
- " texcoord=gl_Vertex.xy;\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"