Three.js Advanced Rendering Techniques

These demos go beneath the default three.js pipeline to explore the techniques used in modern game engines and renderers. They cover screen-space ambient occlusion and global illumination, temporal anti-aliasing, cascaded shadow maps for large outdoor scenes, and deferred and tiled forward+ lighting for scenes with hundreds of lights.

Transparency gets special attention, with weighted blended order-independent transparency and depth peeling, alongside reflection probes, IES photometric lights and a progressive GPU path tracer. Each page explains the trade-offs between quality, memory and frame time.

Most viewed in rendering techniques

All rendering techniques demos

15 Demos
Reversed Depth + PostFX Compatibility (r183) preview
Explore Demo →

Reversed Depth + PostFX Compatibility (r183)

Long depth-range scene rendered with `reverseDepthBuffer` and `EffectComposer`, demonstrating post-processing compatibility under reversed depth.

rendering
TRAA vs SMAA Comparison (r183 roadmap) preview
Explore Demo →

TRAA vs SMAA Comparison (r183 roadmap)

Split-screen anti-aliasing comparison with temporal accumulation AA on the left and SMAA post-processing on the right for visual quality tradeoff analysis.

rendering
Shadow Map Types Comparison (r183 roadmap) preview
Explore Demo →

Shadow Map Types Comparison (r183 roadmap)

Three-way split viewport that compares `PCFShadowMap`, `PCFSoftShadowMap`, and `VSMShadowMap` on the same animated scene and light setup.

rendering
Three.js Ambient Occlusion (GTAO vs SSAO) preview
Explore Demo →

Three.js Ambient Occlusion (GTAO vs SSAO)

Screen-space ambient occlusion in Three.js comparing GTAOPass (ground-truth horizon-based AO with Poisson denoise) and SSAOPass (hemisphere kernel) on a crevice-heavy scene, with AO-only and no-AO views.

rendering
Three.js Screen-Space Global Illumination (SSGI) preview
Explore Demo →

Three.js Screen-Space Global Illumination (SSGI)

One-bounce screen-space global illumination in Three.js that gathers light reflected by nearby visible pixels from color, depth and normal buffers, with temporal accumulation and visible color bleeding in a Cornell box.

rendering
Three.js Temporal Anti-Aliasing (TAA from Scratch) preview
Explore Demo →

Three.js Temporal Anti-Aliasing (TAA from Scratch)

Temporal anti-aliasing implemented by hand in Three.js, with Halton sub-pixel jitter via setViewOffset, an exponential history buffer and neighbourhood clamping, shown split-screen against the raw aliased frame.

rendering
Three.js Cascaded Shadow Maps (CSM) preview
Explore Demo →

Three.js Cascaded Shadow Maps (CSM)

Cascaded shadow maps in Three.js with the CSM addon, keeping shadows sharp near the camera across a 180 m avenue, with adjustable cascades, practical/uniform/logarithmic splits, cascade fading and frustum visualization.

rendering
Three.js Deferred vs Forward Rendering (256 Lights) preview
Explore Demo →

Three.js Deferred vs Forward Rendering (256 Lights)

Compare deferred and forward shading in Three.js, using a 3-target MRT G-buffer (albedo, normal, position) lit by up to 256 point lights in one full-screen pass, against standard forward point lights.

rendering
Three.js Tiled Forward+ Lighting (1024 Lights) preview
Explore Demo →

Three.js Tiled Forward+ Lighting (1024 Lights)

Tiled forward (Forward+) lighting in Three.js, where the CPU bins up to 1024 point lights into 32-pixel screen tiles each frame and fragments shade only their tile's lights, with a per-tile heatmap and a brute-force comparison.

rendering
Three.js Order-Independent Transparency (Weighted Blended OIT) preview
Explore Demo →

Three.js Order-Independent Transparency (Weighted Blended OIT)

Weighted blended order-independent transparency in Three.js (McGuire & Bavoil), with accumulation and revealage render targets composited over the opaque scene, compared with sorted alpha blending on intersecting glass.

rendering
Three.js Depth Peeling (Exact Transparency) preview
Explore Demo →

Three.js Depth Peeling (Exact Transparency)

Depth peeling in Three.js, rendering transparent geometry in N passes where each peels the next-nearest layer using the previous layer's depth texture, then compositing back to front for correctly ordered transparency.

rendering
Three.js Reflection Probes (Box-Projected Cube Maps) preview
Explore Demo →

Three.js Reflection Probes (Box-Projected Cube Maps)

Local reflection probes in Three.js, with a CubeCamera in each of two differently lit rooms and parallax-corrected box projection for a moving chrome sphere and glossy floors, blending probes across the doorway.

rendering
Three.js IES Light Profiles (Photometric Lighting) preview
Explore Demo →

Three.js IES Light Profiles (Photometric Lighting)

Photometric lighting in Three.js from IES LM-63 profiles, using an included parser, candela lookups per vertical angle in a custom shader, photometric web visualizations, four fixture types and loading of your own .ies files.

rendering
Three.js GPU Path Tracer (Progressive Cornell Box) preview
Explore Demo →

Three.js GPU Path Tracer (Progressive Cornell Box)

Progressive GPU path tracing in a Three.js fragment shader, rendering an analytic Cornell box with diffuse, mirror and glass materials, next-event estimation on the area light, Russian roulette and running-average accumulation.

rendering
Three.js Contact Shadows (Soft Grounding Shadows) preview
Explore Demo →

Three.js Contact Shadows (Soft Grounding Shadows)

Soft contact shadows in Three.js, rendered from below the floor with an orthographic camera, converted from depth to darkness, blurred with separable passes and projected onto a ground plane, compared with directional shadow maps.

rendering