# Matcap Shading

A lighting rig baked once into a sphere-shaped lookup texture, then replayed as a single texture fetch per pixel on a spinning relief-mapped sphere.

## Download

Download the complete verified example source:

```bash
npx vgpu examples pull matcap --out ./matcap
```

## Explore

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

## Included files

- `index.tsx`
- `renderer.ts`
- `camera.ts`
- `scene.ts`
- `bake-matcap.wgsl`
- `matcap.wgsl`
