Three.js Lighting Examples

Lighting does more than anything else to make a 3D scene look believable. These demos explore every light type in three.js, including point, spot, directional and ambient lights, and the shadows they cast, with live controls so you can see how intensity, colour, falloff and shadow settings change the result.

Beyond the basics you will find atmospheric techniques such as volumetric light shafts, fog scattering, flickering torches and a full day-night cycle, plus soft shadows and glow effects. Each demo explains the cost of the technique as well as its look, so you can choose what fits your performance budget.

Most viewed in lighting

All lighting demos

13 Demos
Three.js Point Light Interactive Demo preview
Explore Demo →

Three.js Point Light Interactive Demo

Interactive three.js point light with real-time controls for position, color, and intensity. Features point light helper visualization and mouse tracking.

lighting
Directional Shadow Visualizer preview
Explore Demo →

Directional Shadow Visualizer

Inspect directional light shadow camera and map size.

lighting
Spotlight Follow Cursor preview
Explore Demo →

Spotlight Follow Cursor

Spotlight target follows the mouse; tweak angle and penumbra.

lighting
Flickering Torch preview
Explore Demo →

Flickering Torch

Noise-based point light flicker simulating a handheld torch.

lighting
Three.js Day-Night Cycle Simulation preview
Explore Demo →

Three.js Day-Night Cycle Simulation

Dynamic Three.js day-night cycle demo animating sky color, sun position, and light intensity to simulate sunrise, noon, sunset, and nighttime transitions.

lighting
Multiple Light Blending preview
Explore Demo →

Multiple Light Blending

Add/remove multiple colored lights and blend their effects.

lighting
Disco Lights preview
Explore Demo →

Disco Lights

Patterned color-cycling lights with tempo and patterns.

lighting
Volumetric Light Shafts preview
Explore Demo →

Volumetric Light Shafts

Fake god rays with additive cone; adjust density and decay.

lighting
Fog Scattering Playground (r183-inspired) preview
Explore Demo →

Fog Scattering Playground (r183-inspired)

Atmospheric spotlight demo using exponential fog and additive beam scattering to visualize how light volumetrics react to fog density and penumbra.

lighting
Volumetric Spotlight Lab (r183 roadmap) preview
Explore Demo →

Volumetric Spotlight Lab (r183 roadmap)

Dense spotlight beam demo combining real spotlight shadows with additive volumetric cone scattering and animated occluders for dynamic light shafts.

lighting
Soft Shadows in Three.js preview
Explore Demo →

Soft Shadows in Three.js

Advanced three.js soft shadow techniques with PCF shadow mapping, dynamic shadow softness control, and real-time shadow quality comparison.

lighting
Neon Glow Text preview
Explore Demo →

Neon Glow Text

Emissive neon-style text with adjustable glow intensity.

lighting
Depth of Field Gallery preview
Explore Demo →

Depth of Field Gallery

Post-processing depth of field effect with objects at varying distances.

lighting