]> git.tdb.fi Git - libs/gl.git/blob - shaderlib/bloom_blur.glsl
Use Renderer for rendering PostProcessors
[libs/gl.git] / shaderlib / bloom_blur.glsl
1 import postprocess;
2 import bloom;
3
4 ////// fragment
5 void main()
6 {
7         frag_color = vec4(0.0, 0.0, 0.0, 0.0);
8         for(int i=0; i<=size*2; ++i)
9                 frag_color += texture(source, texcoord+delta*float(i-size))*factors[i];
10 }