Plausible motion blur (reconstruction filter)
Post-process motion blur that tiles the velocity buffer, picks the dominant velocity per neighbourhood, and gathers colour along it with depth-aware weights so moving objects blur over backgrounds and sharp silhouettes survive.
Also known as McGuire motion blur
In the family Post-processing, color & imaging, motion blur
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | Official add-on | import { motionBlur } from 'three/addons/tsl/display/MotionBlur.js' docs Uses velocity buffer. |
| Babylon.js 9.38.0 | Built in | new BABYLON.MotionBlurPostProcess('mb', scene, 1.0, camera); isObjectBased = true docs |
| Godot 4.7 | None found | Motion vectors are generated for TAA/FSR2, but no built-in per-object motion blur post-process is provided. |
| Unity | Built in | Volume > Add Override > Post-processing > Motion Blur docs Camera and per-object motion vectors; tile-based reconstruction in HDRP. |
| Unreal 5.7 | Built in | Post Process Volume > Lens > Motion Blur docs |
| Blender 5.2 | Built in | Properties > Render > Motion Blur (Cycles and EEVEE) docs |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
The renderer outputs a per-pixel velocity buffer. A first pass reduces it into tiles holding the largest velocity vector in each tile, and a second pass spreads that to a 3x3 tile neighbourhood so each pixel knows the strongest velocity that could affect it. The gather then samples colour along that dominant direction. Each sample's weight depends on whether the sample's velocity and depth say it can cover the centre pixel, so a fast foreground object smears into the background but a static foreground does not get blurred by a moving background. A soft depth comparison avoids hard edges. Dithered sample offsets hide banding, and a light blur or temporal filter cleans the noise.
When to choose it
Reach for it when
- fast movement looks choppy at 30 fps
- want film-like blur on moving objects
- blur smears sharp silhouettes over background
- need motion blur without rendering sub-frames
Choose it when you have accurate per-object velocity and want film-like blur on fast motion without rendering sub-frames.
Prefer camera-only blur reconstructed from depth when no velocity buffer exists. Pair with Temporal Anti-Aliasing, which already requires the same velocity buffer.
Field marks
- Foreground objects do not blur over the background they occlude where that background is unknown
- Wrong or missing velocity on transparents and particles breaks the effect
- Sampling noise or banding at low tap counts
- Strobing appearance at very low frame rates where blur length is large
Presets
Left: sharp frame. Right: gather along the dominant velocity (dilated around the moving disc)
{
"NT": 32
}Show GLSL (23 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 vec2 VEL=vec2(0.17,0.045); // P
const int NT=32; // P
vec3 frame(vec2 p){
vec3 c=mix(vec3(.85,.88,.8),vec3(.55,.65,.75),clamp(p.y+.5,0.,1.));
c*=.75+.25*step(.5,fract(p.x*14.));
vec2 o=p-vec2(-.04,-.02);float d=length(o)-.09;
vec3 oc=mix(vec3(.9,.3,.2),vec3(1.,.85,.3),step(.5,fract((o.x+o.y)*40.)));
return mix(c,oc*(.65+.5*clamp(.5-o.y*4.,0.,1.)),smoothstep(.002,-.002,d));}
bool isObj(vec2 p){return length(p-vec2(-.04,-.02))<.09;}
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 col=frame(q);
if(R){bool near=false;
for(int i=-4;i<=4;i++)if(isObj(q+VEL*float(i)/8.))near=true;
if(near){vec3 acc=vec3(0.);
for(int i=0;i<NT;i++){float t=(float(i)+.5)/float(NT)-.5;acc+=frame(q+VEL*t);}
col=acc/float(NT);}}
if(abs(uv.x)<.0015)col=vec3(1.);fragColor=vec4(gam(col),1.);
}Attribution: written for this index
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| per-object-motion-blur-specimen | Tesla T4 1920x1080 | 3.09× baseline (light) · 0.102 ms / 0.108 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| per-object-motion-blur-specimen | NVIDIA L4 1920x1080 | 2.50× baseline (light) · 0.040 ms / 0.040 ms · 2.6× faster on L4 | opengl-timer-query · Cross-architecture validation |
| per-object-motion-blur-specimen | NVIDIA A100-SXM4-40GB 1920x1080 | 1.98× baseline (feather) · 0.057 ms / 0.057 ms · 1.8× faster on A100 | opengl-timer-query · Cross-architecture validation |
Crosses
- Temporal Anti-Aliasing: Both consume the same velocity buffer.
Sources
- primaryMorgan McGuire, Padraic Hennessy, Michael Bukowski, Brian Osman (2012). A reconstruction filter for plausible motion blur. Proceedings of the ACM SIGGRAPH Symposium on Interactive 3D Graphics and Games.Verified via crossref · 2026-11-29doi:10.1145/2159616.2159639