]> git.tdb.fi Git - libs/gl.git/blob - builtin_data/_bloom_blur.glsl
Clean up includes and forward declarations for the core classes
[libs/gl.git] / builtin_data / _bloom_blur.glsl
1 import flat_effect;
2 import _bloom;
3
4 #pragma MSP stage(fragment)
5 layout(location=0) out vec4 frag_color;
6 void main()
7 {
8         frag_color = vec4(0.0);
9         for(int i=0; i<=size*2; ++i)
10                 frag_color += texture(source, texcoord+delta*float(i-size))*factors[i];
11 }