--- shader_8.frag 2011-06-12 09:18:33.884583051 +0300 +++ testa 2011-06-12 09:17:21.100574125 +0300 @@ -8,10 +8,10 @@ vec2 tc = gl_TexCoord[0].xy; vec4 total = vec4(0.0, 0.0, 0.0, 0.0); for(int i = -kernel_size; i < kernel_size; ++i) { - total += texture2D(texScreen, vec2(tc.x + (i * ratio), tc.y)); + total += texture2D(texScreen, vec2(tc.x + (float(i) * ratio), tc.y)); } - total.rgb /= (kernel_size * 2); + total.rgb /= float(kernel_size * 2); gl_FragColor = total; }