Skip to content

Examples

Every example, drawn live on this page. Open one to play it.

Highlights

Start from these

Five examples to read first, each with the file to open and the page that explains it.

  1. Cloister

    A model lit by a sky and eight lanterns, with point shadows, TAA and bloom.

    scene.tsA finished look for model scenes

  2. Forest

    One mesh drawn 20 000 times, swayed per instance and culled on the GPU.

    trees.tsInstances

  3. Fish tank

    Rows that a kernel steps each frame, reading their neighbours from a grid.

    school.tsNeighbour grid

  4. Lattice

    Drawings of your own in one description of passes, with motion for TAA.

    lattice.tsPasses

  5. Blockfall

    A game: rules on the CPU, blocks as rows, a fixed-step clock and coroutines.

    blocks.tsData on the GPU

Worlds

Lit scenes of models, shadows and post-processing.

Simulations

Physics, growth and particles stepped on the GPU.

Animation

Skinned crowds, solved limbs and soft bodies.

Data

Picking, labels and lines.

Games

Something to play.

Techniques

One technique each, small enough to read in one sitting.