# Lava material

Author a procedural lava material as plain WGSL modules and wire them into a three.js node material — twelve surface slots, all driven from shader source.

## Download

Download the complete verified example source:

```bash
npx vgpu examples pull three-tsl --out ./three-tsl
```

## Explore

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

## Included files

- `index.tsx`
- `renderer.ts`
- `object-drag-controls.ts`
- `scenes.ts`
- `lava-material.ts`
- `bake-lava.ts`
- `environment.ts`
- `lava.wgsl`
- `noise.wgsl`
