---
id: "dual-filter-bloom"
title: "Dual-filter and progressive-downsample bloom"
aliases: [Call of Duty bloom, progressive downsample bloom]
domain: "post"
stage: "post"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal, godot]
year_introduced: 2014
inputs: [hdr-image]
outputs: [hdr-image]
style: "both"
dynamic: "both"
cost: "cheap"
authority: "Jimenez"
url: "https://texelatlas.vercel.app/t/dual-filter-bloom/"
sources_verified_at: "2026-11-29"
---
# Dual-filter and progressive-downsample bloom (Jimenez)

> Bloom built by downsampling the HDR image through a chain of mips with a wide-footprint filter, then upsampling and adding the levels back; the cost stays small even for very large glow radii.

## Reach for it when

- glow around bright lights is too expensive on mobile
- wide gaussian blur kills my frame rate
- need big soft glow radius at low cost in webgl
- emissive surfaces should bleed light into surroundings

## How it works

Rather than one huge blur, the image is repeatedly halved. Each downsample uses a 13-tap tent-like pattern arranged to avoid fireflies and aliasing: weighted overlapping 4-tap groups around the pixel, with a Karis average on the first level so a single hot pixel cannot dominate. The result at the lowest mip has an effective radius of many pixels at tiny cost. The chain is then walked back up: each level is upsampled with a 3x3 tent filter, optionally multiplied by a per-level weight and added to the next-larger mip. The final blend adds the combined glow, scaled by an intensity, to the HDR scene before tonemapping. Thresholding is optional and often omitted for a physically motivated, energy-conserving look.

## When to use it

Choose it for HDR glow around emissives and specular highlights, particularly on mobile and WebGL where wide Gaussians are too slow.

Prefer a thresholded Gaussian when you need a tight, art-directed halo. Prefer [Pseudo lens flare](https://texelatlas.vercel.app/t/lens-flare.md) for streaks and ghosts rather than isotropic glow; the two share the downsampled mip chain.

## Cost

cheap — About 2 x log2(height) small passes with shrinking cost; qualitative.
Measured GPU Weight: 108.49× baseline (extreme) — 3.5692 ms median / 3.6353 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 52.39× baseline (heavy) — 0.833 ms median (4.28× faster on L4).
Ampere A100 scaling: 56.1× baseline (heavy) — 1.6156 ms median (2.21× faster on A100).

## Failure modes

- Without the Karis average a single bright pixel produces flickering blobs
- Blocky or shimmering glow if the filter is replaced by plain bilinear downsample
- Bloom in LDR after tonemapping looks washed out
- Fixed mip radii give resolution-dependent glow size

## Engine support

- babylonjs: builtin — `DefaultRenderingPipeline.bloomEnabled (BloomEffect)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/PostProcesses/bloomEffect.ts, checked 2026-12-01)
- blender: builtin — `Compositor > Glare node (Bloom / Fog Glow mode)` (evidence: https://docs.blender.org/manual/en/5.2/compositing/types/filter/glare.html, checked 2026-12-01)
- godot: builtin — `WorldEnvironment > Environment.glow_enabled (multi-level mip pyramid bloom)` (evidence: https://github.com/godotengine/godot/blob/4.7.2-stable/doc/classes/Environment.xml, checked 2026-12-01)
- threejs: official — `import { bloom } from 'three/addons/tsl/display/BloomNode.js' (WebGL: UnrealBloomPass)` (evidence: https://github.com/mrdoob/three.js/blob/r187/examples/jsm/tsl/display/BloomNode.js, checked 2026-12-01) — Mip-chain blur bloom (BloomNode/UnrealBloomPass).
- unity: builtin — `Volume > Add Override > Post-processing > Bloom > Filter = Dual (or Gaussian/Kawase)` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.render-pipelines.universal/Runtime/Overrides/Bloom.cs, checked 2026-12-01) — URP Bloom has Gaussian, Dual and Kawase filter modes.
- unreal: builtin — `Post Process Volume > Lens > Bloom > Method = Standard (multi-pass Gaussian mip pyramid) or Convolution` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/bloom-in-unreal-engine, checked 2026-12-01)

## Dataflow

- Inputs: hdr-image
- Outputs: hdr-image
- Platforms: webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal, godot

## Presets

### Left: HDR frame tonemapped. Right: bloom from a 3-level dual-filter pyramid (5-tap down-sample chain, bright-pass first) (glsl-fragment; rendered 2026-11-29)

```json
{
  "HPX": 3,
  "BI": 1.2
}
```

```glsl
float hash(vec2 c){uvec2 u=uvec2(ivec2(floor(c)));uint h=u.x*1597334673u^u.y*3812015801u;h^=h>>15;h*=2246822519u;h^=h>>13;h*=3266489917u;h^=h>>16;return float(h)*(1./4294967296.);}
float lum(vec3 c){return dot(c,vec3(.2126,.7152,.0722));}
vec3 gam(vec3 c){return pow(clamp(c,0.,1.),vec3(1./2.2));}

const float HPX=3.0; // P
const float BI=1.2; // P
vec3 src(vec2 p){
  vec3 c=vec3(.02,.025,.04)+vec3(.08,.05,.1)*(p.y+.5);
  c=mix(c,vec3(.15,.12,.1),smoothstep(.002,-.002,abs(length(p-vec2(0.,-.2))-.11)-.02));
  c+=vec3(1.,.8,.5)*30.*smoothstep(.002,-.002,length(p-vec2(-.1,.2))-.025);
  c+=vec3(.4,.7,1.)*30.*smoothstep(.002,-.002,length(p-vec2(.12,.0))-.02);
  c+=vec3(1.,.4,.4)*30.*smoothstep(.002,-.002,max(abs(p.x+.02),abs(p.y+.3)*.1-.0)-.008)*step(abs(p.y+.3),.1);
  return c;}
vec3 D0(vec2 p){return max(src(p)-1.,vec3(0.));}
vec3 D1(vec2 p,float h){return(4.*D0(p)+D0(p+h*vec2(1.,1.))+D0(p+h*vec2(-1.,1.))+D0(p+h*vec2(1.,-1.))+D0(p-h*vec2(1.,1.)))/8.;}
vec3 D2(vec2 p,float h){float g=2.*h;return(4.*D1(p,h)+D1(p+g*vec2(1.,1.),h)+D1(p+g*vec2(-1.,1.),h)+D1(p+g*vec2(1.,-1.),h)+D1(p-g*vec2(1.,1.),h))/8.;}
vec3 D3(vec2 p,float h){float g=4.*h;return(4.*D2(p,h)+D2(p+g*vec2(1.,1.),h)+D2(p+g*vec2(-1.,1.),h)+D2(p+g*vec2(1.,-1.),h)+D2(p-g*vec2(1.,1.),h))/8.;}
vec3 D4(vec2 p,float h){float g=8.*h;return(4.*D3(p,h)+D3(p+g*vec2(1.,1.),h)+D3(p+g*vec2(-1.,1.),h)+D3(p+g*vec2(1.,-1.),h)+D3(p-g*vec2(1.,1.),h))/8.;}
void mainImage(out vec4 fragColor,in vec2 fragCoord){
  vec2 uv=(fragCoord-.5*iResolution.xy)/iResolution.y;bool R=uv.x>0.;vec2 q=vec2(uv.x+(R?-.25:.25),uv.y);
  vec3 c=src(q);
  if(R){float h=HPX/512.;c+=BI*(D2(q,h)+D3(q,h));}
  vec3 col=gam(c/(1.+c*.5));
  if(abs(uv.x)<.0015)col=vec3(1.);fragColor=vec4(col,1.);
}
```

Attribution: written for this index

## Combines with

- [Pseudo lens flare](https://texelatlas.vercel.app/t/lens-flare.md): The bloom mip chain doubles as the source texture for ghosts and halos.
- [Scatter-as-gather bokeh depth of field](https://texelatlas.vercel.app/t/depth-of-field-scatter-as-gather.md): Both rely on an HDR buffer and the same downsample infrastructure.

## Sources

1. [primary] Jorge Jimenez Next Generation Post Processing in Call of Duty: Advanced Warfare. SIGGRAPH 2014 Advances in Real-Time Rendering. https://www.iryoku.com/next-generation-post-processing-in-call-of-duty-advanced-warfare (verified via http on 2026-11-29)
2. [tutorial] Joey de Vries Bloom. learnopengl.com. https://learnopengl.com/Advanced-Lighting/Bloom (verified via http on 2026-11-29)
3. [implementation] pmndrs (2015) pmndrs/postprocessing. https://github.com/pmndrs/postprocessing License: Zlib. (verified via github on 2026-11-29)

## Cite this entry

Texel. "Dual-filter and progressive-downsample bloom." https://texelatlas.vercel.app/t/dual-filter-bloom/ (accessed 2026-12-01).
