Dual-filter and progressive-downsample bloom
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.
Also known as Call of Duty bloom, progressive downsample bloom
In the family Post-processing, color & imaging, glow
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | Official add-on | import { bloom } from 'three/addons/tsl/display/BloomNode.js' (WebGL: UnrealBloomPass) docs Mip-chain blur bloom (BloomNode/UnrealBloomPass). |
| Babylon.js 9.38.0 | Built in | DefaultRenderingPipeline.bloomEnabled (BloomEffect) docs |
| Godot 4.7 | Built in | WorldEnvironment > Environment.glow_enabled (multi-level mip pyramid bloom) docs |
| Unity | Built in | Volume > Add Override > Post-processing > Bloom > Filter = Dual (or Gaussian/Kawase) docs URP Bloom has Gaussian, Dual and Kawase filter modes. |
| Unreal 5.7 | Built in | Post Process Volume > Lens > Bloom > Method = Standard (multi-pass Gaussian mip pyramid) or Convolution docs |
| Blender 5.2 | Built in | Compositor > Glare node (Bloom / Fog Glow mode) docs |
| WebGPU W3C | None found | |
| Metal | None found |
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 choose it
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
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 for streaks and ghosts rather than isotropic glow; the two share the downsampled mip chain.
Field marks
- 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
Presets
Left: HDR frame tonemapped. Right: bloom from a 3-level dual-filter pyramid (5-tap down-sample chain, bright-pass first)
{
"HPX": 3,
"BI": 1.2
}Show GLSL (25 lines)
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
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| dual-filter-bloom-specimen | Tesla T4 1920x1080 | 108× baseline (extreme) · 3.57 ms / 3.64 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| dual-filter-bloom-specimen | NVIDIA L4 1920x1080 | 52.4× baseline (heavy) · 0.833 ms / 0.845 ms · 4.3× faster on L4 | opengl-timer-query · Cross-architecture validation |
| dual-filter-bloom-specimen | NVIDIA A100-SXM4-40GB 1920x1080 | 56.1× baseline (heavy) · 1.62 ms / 1.63 ms · 2.2× faster on A100 | opengl-timer-query · Cross-architecture validation |
Crosses
- Pseudo lens flare: The bloom mip chain doubles as the source texture for ghosts and halos.
- Scatter-as-gather bokeh depth of field: Both rely on an HDR buffer and the same downsample infrastructure.
Sources
- primaryJorge Jimenez. Next Generation Post Processing in Call of Duty: Advanced Warfare. SIGGRAPH 2014 Advances in Real-Time Rendering.Verified via live page · 2026-11-29
- implementationpmndrs (2015). pmndrs/postprocessing. A post processing library for three.js.GitHub API · license Zlib · 2026-11-29