# Transmission

A glass cube refracts the scene behind it in screen space: the frame is rendered, blurred into a pyramid, and read back through Snell refraction, chromatic dispersion and a Fresnel-weighted environment reflection.

## Download

Download the complete verified example source:

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

## Explore

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

## Included files

- `index.tsx`
- `renderer.ts`
- `scene.ts`
- `camera.ts`
- `pointer-input.ts`
- `sky.wgsl`
- `blur.wgsl`
- `env-common.wgsl`
- `scene-background.wgsl`
- `floor.wgsl`
- `glass.wgsl`
- `present.wgsl`
