mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-29 02:55:36 -05:00
25 lines
658 B
Text
25 lines
658 B
Text
|
void main ()
|
||
|
{
|
||
|
vec4 c;
|
||
|
vec2 poisson[8];
|
||
|
poisson[0] = vec2(0.0, 0.0);
|
||
|
poisson[1] = vec2(0.527837, -0.085868);
|
||
|
poisson[2] = vec2(-0.040088, 0.536087);
|
||
|
poisson[3] = vec2(-0.670445, -0.179949);
|
||
|
poisson[4] = vec2(-0.419418, -0.616039);
|
||
|
poisson[5] = vec2(0.440453, -0.639399);
|
||
|
poisson[6] = vec2(-0.757088, 0.349334);
|
||
|
poisson[7] = vec2(0.574619, 0.685879);
|
||
|
c = vec4(0.0, 0.0, 0.0, 0.0);
|
||
|
c.xy = poisson[0];
|
||
|
c.xy = (c.xy + poisson[1]);
|
||
|
c.xy = (c.xy + poisson[2]);
|
||
|
c.xy = (c.xy + poisson[3]);
|
||
|
c.xy = (c.xy + poisson[4]);
|
||
|
c.xy = (c.xy + poisson[5]);
|
||
|
c.xy = (c.xy + poisson[6]);
|
||
|
c.xy = (c.xy + poisson[7]);
|
||
|
gl_FragData[0] = c;
|
||
|
}
|
||
|
|