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
Interactive three.js point light with real-time controls for position, color, and intensity. Features point light helper visualization and mouse tracking.
Directional Shadow Visualizer
Inspect directional light shadow camera and map size.
Spotlight Follow Cursor
Spotlight target follows the mouse; tweak angle and penumbra.
Flickering Torch
Noise-based point light flicker simulating a handheld torch.
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.
Multiple Light Blending
Add/remove multiple colored lights and blend their effects.
Disco Lights
Patterned color-cycling lights with tempo and patterns.
Volumetric Light Shafts
Fake god rays with additive cone; adjust density and decay.
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.
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.
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.
Neon Glow Text
Emissive neon-style text with adjustable glow intensity.
Depth of Field Gallery
Post-processing depth of field effect with objects at varying distances.