declare const _default: "uniform float blur;\nuniform float blurSharpness;\nuniform int blurKernel;\n\n// algorithm is from: https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/denoise.js\nvec3 denoise(vec3 center, sampler2D tex, vec2 uv, vec2 invTexSize, float blur, float blurSharpness, int blurKernel) {\n    vec3 color;\n    float total;\n    vec3 col;\n    float weight;\n\n    for (int x = -blurKernel; x <= blurKernel; x++) {\n        for (int y = -blurKernel; y <= blurKernel; y++) {\n            col = textureLod(tex, uv + vec2(x, y) * invTexSize, 0.).rgb;\n            weight = 1.0 - abs(dot(col - center, vec3(0.25)));\n            weight = pow(weight, blurSharpness);\n            color += col * weight;\n            total += weight;\n        }\n    }\n\n    return color / total;\n}";
export default _default;
