# Denoiser

component in `three-gpu-pathtracer/r3f`

```js
import { Denoiser } from 'three-gpu-pathtracer/r3f';
```

Attaches a denoiser to the nearest parent WebGPUPathTracer. Must be a child of WebGPUPathTracer.
All properties on the denoiser instance can be set as props directly. The caller owns the instance
and disposes it.

## Props

- `denoiser`, `OIDNDenoiser`: The denoiser instance to attach.
- `children`, `ReactNode`, optional: Children rendered with access to the denoiser context.
