# Modular City

A miniature city whose neighborhoods are vgpu/scene groups of instance records; tap a building to pick it with a GPU ID pass, then edit it.

## Download

Download the complete verified example source:

```bash
npx vgpu examples pull modular-city --out ./modular-city
```

## Explore

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

## Included files

- `index.tsx`
- `renderer.ts`
- `orbit-input.ts`
- `city.ts`
- `layout.ts`
- `pipeline.ts`
- `picking.ts`
- `common.wgsl`
- `city.wgsl`
- `ground.wgsl`
- `pick.wgsl`
- `shadow.wgsl`
- `present.wgsl`
