# Spiral Galaxy

A launch-page star-field hero built end to end on vgpu: a compute pass flows 4,600 stars along the five spiral strokes of a "6", converges them from a scattered sky and runs a pointer-repel simulation; additive quads draw them into an HDR scene; a bloom, lens-flare and dirty-glass chain finishes with an ambient glow, vignette and ACES tone mapping. Drag to rotate, hover to scatter.

## Download

Download the complete verified example source:

```bash
npx vgpu examples pull spiral-galaxy --out ./spiral-galaxy
```

## Explore

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

## Included files

- `index.tsx`
- `renderer.ts`
- `pipeline.ts`
- `field.ts`
- `animation.ts`
- `input.ts`
- `simulate.wgsl`
- `stars.wgsl`
- `bright.wgsl`
- `blur.wgsl`
- `dirt.wgsl`
- `composite.wgsl`
