self:set_sky_mode

Client

Sets the sky interaction mode of the directional light


Syntax

local status = self:set_sky_mode(
    mode
)

Parameters

TypeNameDescription
intmodeSky mode enum value — refer to light.directional.sky_mode

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set a directional light to affect geometry only
local entity = light.directional.create()

entity:set_sky_mode(light.directional.sky_mode.LIGHT_ONLY)

On this page