light.directional.sky_mode

Client

Enumeration of sky interaction modes for the directional light


Values

ConstantDescription
light.directional.sky_mode.LIGHT_AND_SKYThe directional light affects both scene geometry and the sky shader. This is the default mode
light.directional.sky_mode.LIGHT_ONLYThe directional light affects scene geometry only and has no influence on the sky shader
light.directional.sky_mode.SKY_ONLYThe directional light affects the sky shader only and has no influence on scene geometry

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