---
id: "temporal-anti-aliasing"
title: "Temporal Anti-Aliasing"
aliases: [TAA, TAAU]
domain: "post"
stage: "post"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal, godot]
year_introduced: 2014
inputs: [ldr-image, depth, gbuffer]
outputs: [ldr-image]
style: "both"
dynamic: "dynamic"
cost: "cheap"
authority: "Karis"
url: "https://texelatlas.vercel.app/t/temporal-anti-aliasing/"
sources_verified_at: "2026-11-29"
---
# Temporal Anti-Aliasing (Karis)

> 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.

## 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

## 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 use it

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](https://texelatlas.vercel.app/t/fxaa.md) or [SMAA](https://texelatlas.vercel.app/t/smaa.md) when there are no motion vectors, the camera is rarely still, or ghosting is unacceptable. Prefer [NVIDIA DLSS](https://texelatlas.vercel.app/t/dlss.md) or [AMD FidelityFX Super Resolution](https://texelatlas.vercel.app/t/fidelityfx-super-resolution.md) when you also want upscaling, since they are TAA with a larger reconstruction step.

## Cost

cheap — One full-screen resolve plus a motion-vector pass; well under a millisecond at 1080p on desktop hardware, qualitative estimate.
Measured GPU Weight: 5.95× baseline (light) — 0.1956 ms median / 0.2038 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 5.31× baseline (light) — 0.0845 ms median (2.31× faster on L4).
Ampere A100 scaling: 3.88× baseline (light) — 0.1117 ms median (1.75× faster on A100).

## Failure modes

- 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

## Engine support

- babylonjs: builtin — `new BABYLON.TAARenderingPipeline('taa', scene, cameras)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.pure.ts, checked 2026-12-01)
- blender: builtin — `Properties > Render > Sampling (EEVEE); Samples accumulate temporally` (evidence: https://docs.blender.org/manual/en/5.2/render/eevee/render_settings/sampling.html, checked 2026-12-01)
- godot: builtin — `Viewport.use_taa = true` (evidence: https://github.com/godotengine/godot/blob/4.7.2-stable/doc/classes/Viewport.xml, checked 2026-12-01) — Forward+ and Mobile.
- metal: builtin — `MTLFXTemporalScalerDescriptor (MetalFX Temporal Scaler: jittered color + depth + motion vectors)` (evidence: https://developer.apple.com/tutorials/data/documentation/metalfx/mtlfxtemporalscalerdescriptor.json, checked 2026-12-01) — Provides temporal anti-aliasing and spatial/temporal upscaling via MetalFX.
- threejs: official — `import { traa } from 'three/addons/tsl/display/TRAANode.js' (WebGL: TAARenderPass)` (evidence: https://github.com/mrdoob/three.js/blob/r187/examples/jsm/tsl/display/TRAANode.js, checked 2026-12-01)
- unity: builtin — `Camera > Rendering > Anti-aliasing = Temporal Anti-aliasing (TAA)` (evidence: https://github.com/Unity-Technologies/Graphics/blob/557f6ac22b948284f57ffae6a789751fd1f63620/Packages/com.unity.render-pipelines.high-definition/Documentation~/Anti-Aliasing.md, checked 2026-12-01) — HDRP, and URP in Unity 6.
- unreal: builtin — `Project Settings > Rendering > Default Settings > Anti-Aliasing Method = Temporal Anti-Aliasing (TAA) or Temporal Super Resolution (TSR)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/anti-aliasing-and-upscaling-in-unreal-engine, checked 2026-12-01)

## Dataflow

- Inputs: ldr-image, depth, gbuffer
- Outputs: ldr-image
- Platforms: webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal, godot

## Presets

### Left: one aliased sample per pixel. Right: 8 Halton-jittered frames blended with an exponential history (static scene) (glsl-fragment; rendered 2026-11-29)

```json
{
  "ALPHA": 0.25
}
```

```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));}
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

## Lineage

- extended by [NVIDIA DLSS](https://texelatlas.vercel.app/t/dlss.md)
- extended by [AMD FidelityFX Super Resolution](https://texelatlas.vercel.app/t/fidelityfx-super-resolution.md)
- extended by [Intel XeSS](https://texelatlas.vercel.app/t/intel-xess.md)

## Combines with

- [Plausible motion blur (reconstruction filter)](https://texelatlas.vercel.app/t/per-object-motion-blur.md): Motion vectors produced for TAA are the same buffer the motion blur pass consumes.
- [Contrast Adaptive Sharpening](https://texelatlas.vercel.app/t/contrast-adaptive-sharpening.md): CAS restores the detail lost to history blur after the resolve.

## Sources

1. [primary] Brian Karis Advances in Real-Time Rendering in Games, SIGGRAPH 2014. SIGGRAPH 2014 (High Quality Temporal Supersampling). https://advances.realtimerendering.com/s2014 (verified via http on 2026-11-29)
2. [implementation] mrdoob (2010) mrdoob/three.js. https://github.com/mrdoob/three.js License: MIT. (verified via github on 2026-11-29)

## Cite this entry

Texel. "Temporal Anti-Aliasing." https://texelatlas.vercel.app/t/temporal-anti-aliasing/ (accessed 2026-12-01).
