light.directional.sky_mode
Client
Enumeration of sky interaction modes for the directional light
Values
| Constant | Description |
|---|---|
light.directional.sky_mode.LIGHT_AND_SKY | The directional light affects both scene geometry and the sky shader. This is the default mode |
light.directional.sky_mode.LIGHT_ONLY | The directional light affects scene geometry only and has no influence on the sky shader |
light.directional.sky_mode.SKY_ONLY | The directional light affects the sky shader only and has no influence on scene geometry |
Examples
local entity = light.directional.create()
entity:set_sky_mode(light.directional.sky_mode.LIGHT_ONLY)