Directional Light
light.directional.bake_mode
ClientEnumeration of baking behaviors for a directional light
Values
| Constant | Description |
|---|---|
light.directional.bake_mode.DISABLED | Light is not baked and contributes only to real-time lighting |
light.directional.bake_mode.STATIC | Light is baked into lightmaps and global illumination, and does not update at runtime |
light.directional.bake_mode.DYNAMIC | Light is baked into global illumination but can still be modified at runtime |
Examples
local entity = light.directional.create()
entity:set_bake_mode(light.directional.bake_mode.STATIC)