self:set_sky_mode
Client
Sets the sky interaction mode of the directional light
Syntax
local status = self:set_sky_mode(
mode
)Parameters
| Type | Name | Description |
|---|---|---|
int | mode | Sky mode enum value — refer to light.directional.sky_mode |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:set_sky_mode(light.directional.sky_mode.LIGHT_ONLY)