---
id: "atrous-wavelet-filter"
title: "Edge-avoiding a-trous wavelet filter"
aliases: [a-trous filter, edge-avoiding wavelet, A-trous denoiser, à-trous]
domain: "post"
stage: "post"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, cuda, mobile-gpu]
year_introduced: 2010
inputs: [radiance, gbuffer, normals, depth]
outputs: [radiance]
style: "photoreal"
dynamic: "both"
cost: "cheap"
authority: "Dammertz et al."
url: "https://texelatlas.vercel.app/t/atrous-wavelet-filter/"
sources_verified_at: "2026-11-29"
---
# Edge-avoiding a-trous wavelet filter (Dammertz et al.)

> A cascade of small sparse blur kernels whose taps double in spacing each pass, weighted by normal, depth and colour similarity, so large smooth areas blur broadly while edges survive.

## Reach for it when

- need a cheap large radius blur that keeps object edges
- noisy ambient occlusion needs an edge aware cleanup
- build my own denoiser from normals and depth guides
- bilateral blur too slow for big radius
- blur noisy lighting without bleeding across silhouettes

## How it works

The à-trous ('with holes') scheme approximates a wide blur using a fixed small kernel, typically the 5x5 cubic B-spline [1 4 6 4 1]/16 outer product. In iteration i the same kernel is applied with taps spaced 2^i pixels apart (inserting 'holes'), so five or six iterations cover a radius of tens of pixels at constant cost per pass. Each tap weight is multiplied by edge-stopping terms from guide buffers: a Gaussian-like function of the difference in colour or luminance, one of normal similarity (typically a clamped dot product raised to a power), and one of depth or position difference. After normalising by the weight sum, the result is used as input to the next pass. Iterating this is a wavelet-like decomposition without actually storing detail coefficients, and it maps well to compute or fragment shaders with ping-pong textures.

## When to use it

Choose it as the spatial stage of a hand-built denoiser, for filtering noisy lighting such as ray-traced AO, shadows or GI with a G-buffer guide, or as a cheap large-radius edge-aware smoother for SSAO. It is the building block inside [Spatiotemporal Variance-Guided Filtering (SVGF)](https://texelatlas.vercel.app/t/svgf.md), and the spatial half of [NVIDIA Real-time Denoisers (ReBLUR, ReLAX)](https://texelatlas.vercel.app/t/nvidia-nrd-relax-reblur.md). Prefer [Spatiotemporal Variance-Guided Filtering (SVGF)](https://texelatlas.vercel.app/t/svgf.md) when you also need temporal accumulation and variance guidance, [Intel Open Image Denoise (OIDN)](https://texelatlas.vercel.app/t/open-image-denoise.md) for final offline frames, and a bilateral or [Bilateral Normal Integration](https://texelatlas.vercel.app/t/bilateral-normal-integration.md)-style filter only when a single small radius suffices.

## Cost

cheap — Each iteration is one 25-tap (or 9-tap) full-screen pass; five iterations are typically a small fraction of a frame at 1080p, with bandwidth the main cost.
Measured GPU Weight: 771.81× baseline (extreme) — 25.3924 ms median / 25.6691 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 585.06× baseline (extreme) — 9.3025 ms median (2.73× faster on L4).
Ampere A100 scaling: 571.73× baseline (extreme) — 16.4659 ms median (1.54× faster on A100).

## Failure modes

- Blotchy, low-frequency residual noise when the guide buffers do not capture lighting discontinuities
- Grid or ringing patterns from sparse taps at large steps on high-frequency input
- Light bleeding across thin features whose depth and normal are similar to their surroundings
- Over-smoothed texture detail when applied to final colour instead of demodulated irradiance
- Shadow and contact detail lost at big steps unless the colour/luminance term gates the weights

## Dataflow

- Inputs: radiance, gbuffer, normals, depth
- Outputs: radiance
- Platforms: webgl2, webgpu, desktop-gpu, cuda, mobile-gpu

## Presets

### 3-pass edge-avoiding a-trous denoise (noisy | filtered) (glsl-fragment; rendered 2026-11-29)

```json
{
  "steps": [
    1,
    2,
    4
  ],
  "kernel": "3x3 [1 2 1]/4",
  "sigma_color": 0.15
}
```

```glsl
// GLSL ES 3.0, Shadertoy-style. Left half: noisy image. Right half: three edge-avoiding a-trous passes (steps 1,2,4)
// evaluated analytically by nesting the filter, guided by the clean "albedo/normal" image.
const float SIGMA_C = 0.15;   // colour edge-stopping strength on the guide
const float SIGMA_N = 0.9;    // noise amplitude

vec3 clean(vec2 p) {
  vec2 q = p / iResolution.y;
  vec3 bg = mix(vec3(0.15, 0.25, 0.45), vec3(0.85, 0.75, 0.55), q.y);
  float d1 = length(q - vec2(0.45, 0.5)) - 0.22;
  float d2 = length(q - vec2(1.0, 0.45)) - 0.18;
  vec3 col = bg;
  col = mix(vec3(0.9, 0.3, 0.2), col, smoothstep(-0.003, 0.003, d1));
  col = mix(vec3(0.2, 0.8, 0.4), col, smoothstep(-0.003, 0.003, d2));
  return col;
}
float hash12(vec2 p) {
  vec3 p3 = fract(vec3(p.xyx) * 0.1031);
  p3 += dot(p3, p3.yzx + 33.33);
  return fract((p3.x + p3.y) * p3.z);
}
vec3 noisy(vec2 p) {
  vec2 c = floor(p) + 0.5;
  float n = hash12(c) - 0.5;
  float m = hash12(c + 17.0) - 0.5;
  return clean(c) * (1.0 + SIGMA_N * n) + vec3(0.0, 0.0, 0.0) * m;
}
float kern(int i) { return i == 0 ? 0.5 : 0.25; }
float edgeW(vec2 p, vec2 q) {
  vec3 d = clean(p) - clean(q);
  return exp(-dot(d, d) / (SIGMA_C * SIGMA_C));
}
vec3 level1(vec2 p, float s) {
  vec3 sum = vec3(0.0); float ws = 0.0;
  for (int y = -1; y <= 1; y++) for (int x = -1; x <= 1; x++) {
    vec2 q = p + vec2(float(x), float(y)) * s;
    float w = kern(abs(x)) * kern(abs(y)) * edgeW(p, q);
    sum += w * noisy(q); ws += w;
  }
  return sum / ws;
}
vec3 level2(vec2 p, float s) {
  vec3 sum = vec3(0.0); float ws = 0.0;
  for (int y = -1; y <= 1; y++) for (int x = -1; x <= 1; x++) {
    vec2 q = p + vec2(float(x), float(y)) * s * 2.0;
    float w = kern(abs(x)) * kern(abs(y)) * edgeW(p, q);
    sum += w * level1(q, s); ws += w;
  }
  return sum / ws;
}
vec3 level3(vec2 p, float s) {
  vec3 sum = vec3(0.0); float ws = 0.0;
  for (int y = -1; y <= 1; y++) for (int x = -1; x <= 1; x++) {
    vec2 q = p + vec2(float(x), float(y)) * s * 4.0;
    float w = kern(abs(x)) * kern(abs(y)) * edgeW(p, q);
    sum += w * level2(q, s); ws += w;
  }
  return sum / ws;
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
  vec2 uv = fragCoord / iResolution.xy;
  vec3 col = (uv.x < 0.5) ? noisy(fragCoord) : level3(fragCoord, 1.0);
  if (abs(uv.x - 0.5) < 0.003) col = vec3(1.0);
  fragColor = vec4(col, 1.0);
}

```

Attribution: written for this index; algorithm follows the cited paper, analytic nesting used so the demo needs no buffers; basis: 0

## Lineage

- extended by [Spatiotemporal Variance-Guided Filtering (SVGF)](https://texelatlas.vercel.app/t/svgf.md)

## Combines with

- [Spatiotemporal Variance-Guided Filtering (SVGF)](https://texelatlas.vercel.app/t/svgf.md): SVGF drives the à-trous cascade with variance from temporal moments; the filter is the spatial half.
- [Screen-Space Ambient Occlusion](https://texelatlas.vercel.app/t/ssao.md): Noisy per-pixel-rotated AO is cleaned by an edge-aware à-trous pass using depth and normals.

## Sources

1. [primary] Dammertz, Sewtz, Hanika, Lensch Edge-Avoiding A-Trous Wavelet Transform for fast Global Illumination Filtering. jo.dreggn.org. https://jo.dreggn.org/home/2010_atrous.pdf (verified via http on 2026-11-29)
2. [implementation] NVIDIAGameWorks (2017) NVIDIAGameWorks/Falcor. https://github.com/NVIDIAGameWorks/Falcor License: NOASSERTION. (verified via github on 2026-11-29)

## Cite this entry

Texel. "Edge-avoiding a-trous wavelet filter." https://texelatlas.vercel.app/t/atrous-wavelet-filter/ (accessed 2026-12-01).
