Examples
Every example runs in your browser on this site's engine build, with its source beside it and the same file on GitHub one click away. Press backtick in any example for the devtools overlay.
WebGPU: checking…See browser support
Lighting

Light types
Directional, point, spot and hemispheric, each drawn with a gizmo you can see.
- Mouse
- Touch
- Gamepad

Shadows
PCF, ESM and cascades over a long floor, with the map size, the biases and the distance live.
- Mouse
- Touch
- Gamepad

Image-based lighting
Three prefiltered environments, switched at runtime, with rotation and blur.
- Mouse
- Touch
- Gamepad

Tone mapping and exposure
Standard, ACES, Neutral and none, with exposure and contrast, flipped A against B.
- Mouse
- Touch
- Gamepad
Models

Model loading
Load a glTF, watch it arrive, swap it for another, and hand the memory back.
- Mouse
- Touch
- Gamepad

Roughness and metalness
Thirty-six spheres from one mesh: metalness across, roughness up, every value live.
- Mouse
- Touch
- Gamepad

Skinned animation
A rigged fox with three clips: pick one, blend two, change the rate, drag the playhead.
- Mouse
- Touch
- Gamepad
Physics

Physics playground
Drop boxes, spheres and capsules into a pit; change the surface they land on.
- Mouse
- Touch
- Keyboard
- Gamepad

Character controller
A capsule that walks up a 30° ramp, refuses a 60° one, and jumps.
- Keyboard
- Gamepad
- Touch
- Mouse

Platformer controller
Ramps, low steps, one-way planks and coyote time on a kinematic character controller.
- Keyboard
- Gamepad
- Touch

2D physics
Stack crates, roll coins into them, and watch Rapier take the tower apart.
- Mouse
- Touch
Templates

Top-down 2D game
A tilemap with a collision layer, a Y-sorted character, a camera follow and the full front end.
- Keyboard
- Gamepad
- Touch
- Mouse

Side-scrolling 2D game
Three parallax bands, a tilemap with slopes and one-way platforms, coins, and a pixel-perfect camera.
- Keyboard
- Gamepad
- Touch
- Mouse

Third-person 3D game
A character on a capsule, an orbit camera that avoids walls, an animated rig, and a companion that paths.
- Keyboard
- Gamepad
- Touch
- Mouse

First-person 3D game
Walk, sprint, crouch and jump with pointer lock, a view model on the hand, and things to push.
- Keyboard
- Gamepad
- Touch
- Mouse
Sample models and environments are credited on the attribution page.













