Three.js Demos
A collection of basic and lighting demos for Three.js.
Basics

Rotating Cube
basicsSimple rotating cube starter showcasing a basic scene, camera and lighting.

Sphere Texture
basicsUV-mapped sphere using a procedural checkerboard CanvasTexture.

Wireframe Toggle
basicsTorus geometry with a material wireframe toggle (GUI and keyboard "w").

Torus Knot
basicsAnimated TorusKnotGeometry with standard shading and controls.

Ambient + Directional Light
basicsCompare ambient fill with a directional key light on a sphere.

Grid + Axes Helpers
basicsVisual helpers to understand world orientation and scale.

Points Cloud
basicsRandom particle cloud rendered with PointsMaterial.

Axes + Orbit Controls
basicsOrbit a normal-mapped cube with axes visible.

Plane Shadows
basicsEnable basic shadow casting/receiving between objects.

Normals Material
basicsTorus knot with MeshNormalMaterial for quick debugging.

Instanced Grid
basicsThousands of lightweight instances arranged in a grid.

Box Wireframe
basicsWireframe cube using MeshBasicMaterial.

Materials Gallery
basicsCompare basic/lambert/phong/standard materials on spheres.

Primitives Wall
basicsA row of basic primitives rotating under lights.
Lighting

Point Light Playground
lightingDrag to move a point light; adjust color and intensity.

Directional Shadow Visualizer
lightingInspect directional light shadow camera and map size.

Spotlight Follow Cursor
lightingSpotlight target follows the mouse; tweak angle and penumbra.

Flickering Torch
lightingNoise-based point light flicker simulating a handheld torch.

Sunrise-to-Sunset
lightingAnimate sky and sun color/intensity over a day-night cycle.

Multiple Light Blending
lightingAdd/remove multiple colored lights and blend their effects.

Disco Lights
lightingPatterned color-cycling lights with tempo and patterns.

Volumetric Light Shafts
lightingFake god rays with additive cone; adjust density and decay.

Dynamic Soft Shadows
lightingCompare shadow softness techniques and tweak softness.

Neon Glow Text
lightingEmissive neon-style text with adjustable glow intensity.