---
title: "restoreToward"
description: "A correction applied after every solve: re-seed a color that the solve slowly blurs away."
group: "simulation"
groupTitle: "Simulation"
categoryId: "sim.fluids"
categorySlug: "sim-fluids"
categoryTitle: "Fluids"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/sim/fluids.ts#L151"
---

# restoreToward

A correction applied after every solve: re-seed a color that the solve slowly blurs away.

```ts
restoreToward(kernel: FluidKernel): FluidSolveStage
```

Import `sim` from `shaders/std` and use `sim.fluids.restoreToward`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `kernel` | `FluidKernel` |  |

## Example

```ts
solve: [restoreToward(colorRestoreKernel)]
```

## See also

- [`ambientForce`](/docs/primitives/sim-fluids/ambientforce) — A force applied to the whole field before every solve: a turbulence field, a steady wind.
- [`fluidSim`](/docs/primitives/sim-fluids/fluidsim) — A fluid the engine solves every frame.

## Used by

[Fog](/docs/components/fog)