Feature Library

Heat haze & shockwave rings

0.21 GPU · 0.23 CPU ms
A still of the Heat haze & shockwave rings demo
Still
The live demo starts when it’s in view.Click anywhere to fire a sonic shot there · drag to orbit

Air that bends what is behind it: shimmering heat over fires and blasts, and sonic shockwaves (rings, shells and a flying core) animated on the GPU from their…

What it costs a frame

0.21 ms
0.23 ms
GPU
0.21 ms
CPU, median
0.23 ms
CPU, 95th pct
0.36 ms
Draw calls
8
Weight
Light

Measured 3 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 156, 1920×1080 at 1×. 600 frames × 3 rounds, median kept. Phones: tiers are being measured next.

On every machine it was measured on
MachineGPU msCPU msCPU p95
RTX 4060 Laptop · 13th Gen Intel(R) Core(TM) i9-13900Hreference · measuring tool0.210.230.36
apple · Apple A19 Proin a browser tab · 16 November 20263.030.320.70
Intel Arc 140V (Xe2-LPG) · Intel Core Ultra 7 258Vin a browser tab · 15 November 20260.720.590.86

Bars against one 16.7 ms frame. A browser-tab run is timed in a visible tab without the tool’s scripted input, so read it as close, not exact.

What it needs

Renders with
WebGPUNeeds WebGPU: current Chrome and Edge, Safari 26+, Firefox 141+ on Windows.
Your browser
Checking…Looking for WebGPU
Depends on
three.js 0.187.0No other packages

What it’s for

  1. Heat over fires and exhausts
  2. Explosions
  3. Sonic or energy weapons
  4. Shockwaves
  5. Portals and lenses

Pitfalls, in brief

  1. Both read the frame drawn so far: one frame copy each frame they are visible.
  2. three r187: three’s shared frame copy (viewportSharedTexture) can be created 8-bit before the half-float frame target exists, and then every copy fails.
  3. A hidden mesh is skipped by compileAsync: compile once with it shown, or the first shimmer builds its pipeline mid-run.
  4. Draw them after the opaque scene (renderOrder 20/21, transparent, no depth write); anything drawn after them is not bent.
  5. Smoke and other transparent effects drawn before them get bent too; drawn after, they sit on top of the shimmer.
2 more in brief
  1. A ring is one-sided: its quad is turned to face the camera along its axis, so there is no second pass for the back.
  2. Slot rings wrap around (a fixed capacity): a burst that writes more than the capacity overwrites the oldest still alive.
7 pitfalls in full, the hook-up guide, the module source and its tests come with the part.

Where it comes from

From HaTac. Fully custom code.

distortionrefractionscreen-spaceinstancingbillboardstslexplosions

Near it in the frame