/* Shader 8 source, checksum 0 */ uniform sampler2D texScreen; uniform float ratio; uniform int kernel_size; void main() { 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.rgb /= (kernel_size * 2); gl_FragColor = total; } /* Compile status: fail */ /* Log Info: */ 0:10(54): error: Could not implicitly convert operands to arithmetic operator 0:10(55): error: Operands to arithmetic operators must be numeric 0:10(32): error: cannot construct `vec2' from a non-numeric data type 0:0(0): error: no matching function for call to `texture2D(sampler2D, )' 0:0(0): error: candidates are: vec4 texture2D(sampler2D, vec2) 0:0(0): error: vec4 texture2D(sampler2D, vec2, float) 0:10(63): error: Operands to arithmetic operators must be numeric 0:10(63): error: type mismatch 0:13(32): error: Could not implicitly convert operands to arithmetic operator 0:13(32): error: type mismatch