# FogParams

Class · category: Graphics

Source: https://github.com/playcanvas/engine/blob/dfcc50fbbfba2388843041a875ec0ef5d1a586c5/src/scene/fog-params.js#L9

Fog parameters.

## Properties

### color

```ts
color: Color
```

The color of the fog (if enabled), specified in sRGB color space. Defaults to black (0, 0, 0).

### density

```ts
density: number = 0
```

The density of the fog (if enabled). This property is only valid if the fog property is set
to [FOG_EXP](https://api.playcanvas.com/engine/variables/FOG_EXP.md) or [FOG_EXP2](https://api.playcanvas.com/engine/variables/FOG_EXP2.md). Defaults to 0.

### end

```ts
end: number = 1000
```

The distance from the viewpoint where linear fog reaches its maximum. This property is only
valid if the fog property is set to [FOG_LINEAR](https://api.playcanvas.com/engine/variables/FOG_LINEAR.md). Defaults to 1000.

### start

```ts
start: number = 1
```

The distance from the viewpoint where linear fog begins. This property is only valid if the
fog property is set to [FOG_LINEAR](https://api.playcanvas.com/engine/variables/FOG_LINEAR.md). Defaults to 1.

### type

```ts
type: string = FOG_NONE
```

The type of fog used by the scene. Can be:

- [FOG_NONE](https://api.playcanvas.com/engine/variables/FOG_NONE.md)
- [FOG_LINEAR](https://api.playcanvas.com/engine/variables/FOG_LINEAR.md)
- [FOG_EXP](https://api.playcanvas.com/engine/variables/FOG_EXP.md)
- [FOG_EXP2](https://api.playcanvas.com/engine/variables/FOG_EXP2.md)

Defaults to [FOG_NONE](https://api.playcanvas.com/engine/variables/FOG_NONE.md).
