]> git.tdb.fi Git - libs/gl.git/blob - builtin_data/_bloom_blur.glsl
Fix layout processing for old GLSL versions
[libs/gl.git] / builtin_data / _bloom_blur.glsl
1 import postprocess;
2 import _bloom;
3
4 #pragma MSP stage(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 }