2012-06-14 20:26:55 +02:00
|
|
|
uniform float u_Time;
|
|
|
|
uniform sampler2D u_Tex0;
|
|
|
|
varying vec2 v_TexCoord;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
vec4 color = texture2D(u_Tex0, v_TexCoord);
|
|
|
|
int j;
|
|
|
|
int i;
|
|
|
|
|
2012-06-22 07:26:22 +02:00
|
|
|
for(i = -4 ;i <= 4; i++)
|
|
|
|
for(j = -4; j <= 4; j++)
|
|
|
|
color += texture2D(u_Tex0, v_TexCoord + vec2(i, j)*0.003) * 0.008;
|
2012-06-14 20:26:55 +02:00
|
|
|
|
|
|
|
gl_FragColor = color;
|
|
|
|
}
|