unit filter wbawt (float granularity: 0-50 (10),
                   float z1: 0-10 (0), float z2: 0-10 (2),
                   float w2: 0-1 (0.5), float f2: 1-10 (3),
                   float threshold: -1-1 (0))
    g = granularity;
    nxy = xy*g;
    thr = threshold;
    n=noise([nxy[0]/2,nxy[1],z1])+noise([nxy[0]/2*f2,nxy[1]*f2,z2])*w2;
    grayColor(if n >= thr then 1 else 0 end)
end
