M MY Multiplayer: Wiki
Side
Kind

engineGetShadows

Client

Returns the sun's shadow settings.

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

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

See also