Examples
38 examples across 11 categories. Each example is a crawlable page with source code and, where available, a THREE.js comparison.
Getting Started
Geometry
Materials
Material Types
Three spheres showing BasicMaterial, LambertMaterial, and ToonMaterial side by side.
Toon Shading
Four ToonMaterial spheres with different colors showing cel/stepped shading.
Flat vs Gouraud
Two spheres: flat shading (one color per face) vs Gouraud shading (per-vertex, interpolated).
Points Material
Point rendering mode with adjustable point radius.
Lights
Camera
Scene Graph
Animation
Animation Basics
Manual position/rotation/scale animation driven by Clock.delta - no keyframes needed.
Keyframe Animation
AnimationClip with VectorTracks drives position and scale. action.timeScale controls playback speed.
Animation Blending
Two clips on the same Animator: crossFadeFrom switches smoothly between Bounce and Spin.
Textures
Interactive
Performance
Scene Stress Test
Configurable mesh grid to stress traversal, fog, sorting, and texture sampling.
Rasterizer Benchmark
Single sphere with adjustable subdivisions and material modes to isolate rasterizer throughput.
Frustum Culling Test
Large grid of objects with camera aimed at one corner to test frustum culling effectiveness.
Multi-Light Stress Test
Measure lighting cost by adjusting the number of point lights in the scene.
Point Cloud Stress Test
Stress test the PointRasterizer with large vertex counts.
Overdraw Stress Test
Overlapping translucent planes to measure overdraw and transparency cost.
Scene Hierarchy Depth
Deep nested scene graph to test matrix propagation cost.
Resolution Scaling Test
Measure how rendering cost scales with canvas resolution.
Voxel Chunk Stress Test
Minecraft-style voxel chunks testing geometry merging vs individual meshes.
Mixed Complexity Scene
Heterogeneous scene with varied geometry, materials, and shading modes.