# Optimized Black Hole

A multi-pass black hole that bakes relativistic ray traversal once into a G-buffer, then reuses it for animated disk shading, stars, antialiasing and HDR bloom.

## Download

Download the complete verified example source:

```bash
npx vgpu examples pull optimized-black-hole --out ./optimized-black-hole
```

## Explore

- [Interactive example](https://vgpu.sh/examples/optimized-black-hole)
- [Fullscreen preview](https://vgpu.sh/preview/optimized-black-hole)
- [Complete source](https://vgpu.sh/examples/optimized-black-hole/source.md)

## Included files

- `index.tsx`
- `renderer.ts`
- `settings.ts`
- `pipeline.ts`
- `noise-volume.mjs`
- `bake.wgsl`
- `refine.wgsl`
- `gbuffer.wgsl`
- `geodesic.wgsl`
- `shade.wgsl`
- `disk.wgsl`
- `stars.wgsl`
- `bloom.wgsl`
- `composite.wgsl`
