# engineGetShadows (Client)

> Returns the sun's shadow settings.

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

## Syntax

```lua
int, int, bool|false engineGetShadows()
```

## Returns

The number of cascades, the shadow map's resolution and whether the edges are soft, or `false` if the renderer is not running.

## Example

```lua
local cascades, resolution, soft = engineGetShadows()
if cascades > 2 then
    engineSetShadows(2, resolution, soft)
end
```

## See also

- [engineSetShadows (Client)](https://wiki.mymp.gg/en/engineSetShadows.md): Sets up the sun's shadows: how many cascades, their resolution and whether their edges are soft.
- [engineGetLocalLightShadows (Client)](https://wiki.mymp.gg/en/engineGetLocalLightShadows.md): Tells whether local lights cast shadows.
