diff --git a/blur.frag b/blur.frag index e7de584..0e6a5a3 100644 --- a/blur.frag +++ b/blur.frag @@ -8,15 +8,15 @@ uniform bool horizontal; uniform sampler2D tex; void main(){ - int amount=5; + int amount = 5; float weight[5] = float[] (0.227027, 0.1945946, 0.1216216, 0.054054,0.016216); - vec2 texel=1.0/textureSize(tex,0); - vec3 c=texture(tex,texCoords).rgb*weight[0]; + vec2 texel = 1.0 / textureSize(tex, 0); + vec3 c = texture(tex, texCoords).rgb * weight[0]; - for(int i=1;i