# engineSetBloom (Client)

> Sets how many blur levels bloom uses. More levels spread the glow further.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Graphics settings
- **URL**: https://wiki.mymp.gg/en/engineSetBloom

## Syntax

```lua
bool engineSetBloom(int levels)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `levels` | `int` | 0 turns bloom off; otherwise from 2 to 5. The default is 5. Anything else raises an error. |

## Returns

`true` if the setting was applied, `false` if the renderer is not running.

The setting applies to the whole client and stays after the resource stops.

## Example

```lua
engineSetBloom(3)
```

## See also

- [engineGetBloom (Client)](https://wiki.mymp.gg/en/engineGetBloom.md): Returns how many blur levels bloom uses.
- [engineSetSunShafts (Client)](https://wiki.mymp.gg/en/engineSetSunShafts.md): Sets the fraction of the resolution sun shafts are computed at, or turns them off.
