Temporal Anti-Aliasing
Accumulates sub-pixel-jittered frames over time, reprojecting the previous result with motion vectors and clamping it to the current neighbourhood, so aliasing averages out across frames at the cost of a one-frame history.
Also known as TAA, TAAU
In the family Post-processing, color & imaging, anti-aliasing
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | Official add-on | import { traa } from 'three/addons/tsl/display/TRAANode.js' (WebGL: TAARenderPass) docs |
| Babylon.js 9.38.0 | Built in | new BABYLON.TAARenderingPipeline('taa', scene, cameras) docs |
| Godot 4.7 | Built in | Viewport.use_taa = true docs Forward+ and Mobile. |
| Unity | Built in | Camera > Rendering > Anti-aliasing = Temporal Anti-aliasing (TAA) docs HDRP, and URP in Unity 6. |
| Unreal 5.7 | Built in | Project Settings > Rendering > Default Settings > Anti-Aliasing Method = Temporal Anti-Aliasing (TAA) or Temporal Super Resolution (TSR) docs |
| Blender 5.2 | Built in | Properties > Render > Sampling (EEVEE); Samples accumulate temporally docs |
| WebGPU W3C | None found | |
| Metal | Built in | MTLFXTemporalScalerDescriptor (MetalFX Temporal Scaler: jittered color + depth + motion vectors) docs Provides temporal anti-aliasing and spatial/temporal upscaling via MetalFX. |
How it works
Each frame the projection matrix is offset by a sub-pixel jitter taken from a low-discrepancy sequence (Halton is typical), so over N frames the pixel centre samples N positions. The resolve pass reads the current colour, fetches the history buffer at the position given by per-pixel motion vectors, and blends them with a small weight on the current frame, usually around 5 to 10 percent.
History is validated before blending. The common approach clamps the reprojected colour to the min/max (or a variance-based ellipsoid) of the 3x3 neighbourhood in the current frame, which rejects stale colours from disocclusions and lighting changes. Karis' variant also weights samples by inverse luminance after tonemapping to suppress fireflies. A sharpening or bicubic history fetch counters the blur caused by repeated bilinear resampling.
When to choose it
Reach for it when
- specular and thin geometry shimmer
- edge filters don't fix shading aliasing
- alpha-tested foliage crawls and shimmers
- noisy effects need smoothing across frames
Choose it when the frame has shading aliasing (specular, thin geometry, alpha test, noisy stochastic effects) that MSAA or morphological filters cannot touch, and you have reliable motion vectors. It also denoises SSAO, SSR and volumetrics for free.
Prefer FXAA or SMAA when there are no motion vectors, the camera is rarely still, or ghosting is unacceptable. Prefer NVIDIA DLSS or AMD FidelityFX Super Resolution when you also want upscaling, since they are TAA with a larger reconstruction step.
Field marks
- Ghosting trails behind moving objects when motion vectors are missing (transparents, particles, skinned vertex animation)
- Blurring and shimmering of thin high-contrast detail after the neighbourhood clamp
- Flicker on disocclusion for a frame or two as history is rejected
- Jitter-induced crawl in texture sampling unless mip bias is applied
- Smearing of dynamic lighting changes that history rejection misses
Presets
Left: one aliased sample per pixel. Right: 8 Halton-jittered frames blended with an exponential history (static scene)
{
"ALPHA": 0.25
}Show GLSL (21 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));}
vec3 scnA(vec2 px){vec2 p=(px-256.)/512.;
vec3 c=vec3(.93,.92,.88);
float s=fract((p.x*.866+p.y*.5)*11.);c=mix(c,vec3(.1,.12,.2),step(s,.18)*step(abs(p.y+p.x*.3),.38));
float d=length(p-vec2(.0,.0));c=mix(c,vec3(.85,.25,.2),step(abs(d-.2),.02));
c=mix(c,vec3(.1,.5,.4),step(length(p-vec2(-.25,.28)),.1));
c=mix(c,vec3(.1),step(abs(p.x-.2),.004)*step(abs(p.y-.1),.3));
return c;}
const float ALPHA=0.25; // P
const vec2 J[8]=vec2[8](vec2(0.,-.1667),vec2(-.25,.1667),vec2(.25,-.3889),vec2(-.375,-.0556),vec2(.125,.2778),vec2(-.125,-.2778),vec2(.375,.0556),vec2(-.4375,.3889));
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=scnA(fragCoord);
if(R){vec3 acc=vec3(0.);float ws=0.,w=ALPHA;
for(int k=0;k<8;k++){acc+=w*scnA(fragCoord+J[k]*2.);ws+=w;w*=1.-ALPHA;}
col=acc/ws;}
if(abs(uv.x)<.0015)col=vec3(1.);fragColor=vec4(clamp(col,0.,1.),1.);
}Attribution: written for this index
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| temporal-anti-aliasing-specimen | Tesla T4 1920x1080 | 5.95× baseline (light) · 0.196 ms / 0.204 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| temporal-anti-aliasing-specimen | NVIDIA L4 1920x1080 | 5.31× baseline (light) · 0.085 ms / 0.086 ms · 2.3× faster on L4 | opengl-timer-query · Cross-architecture validation |
| temporal-anti-aliasing-specimen | NVIDIA A100-SXM4-40GB 1920x1080 | 3.88× baseline (light) · 0.112 ms / 0.112 ms · 1.8× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
Crosses
- Plausible motion blur (reconstruction filter): Motion vectors produced for TAA are the same buffer the motion blur pass consumes.
- Contrast Adaptive Sharpening: CAS restores the detail lost to history blur after the resolve.
Sources
- primaryBrian Karis. Advances in Real-Time Rendering in Games, SIGGRAPH 2014. SIGGRAPH 2014 (High Quality Temporal Supersampling).Verified via live page · 2026-11-29
- implementationmrdoob (2010). mrdoob/three.js. JavaScript 3D Library.GitHub API · license MIT · 2026-11-29