# Marble Machine

Glossy striped marbles roll down maple ramps and pile into a felt tray; cannon-es runs the physics and vgpu/scene instances draw every body.

## Download

Download the complete verified example source:

```bash
npx vgpu examples pull marble-machine --out ./marble-machine
```

## Explore

- [Interactive example](https://vgpu.sh/examples/marble-machine)
- [Fullscreen preview](https://vgpu.sh/preview/marble-machine)
- [Complete source](https://vgpu.sh/examples/marble-machine/source.md)

## Included files

- `index.tsx`
- `renderer.ts`
- `simulation.ts`
- `machine.ts`
- `scene.ts`
- `camera.ts`
- `input.ts`
- `controls.ts`
- `pipeline.ts`
- `common.wgsl`
- `solids.wgsl`
- `marbles.wgsl`
- `shadow.wgsl`
- `backdrop.wgsl`
- `present.wgsl`
