Directional Light

light.directional.bake_mode

Client

Enumeration of baking behaviors for a directional light

Values

ConstantDescription
light.directional.bake_mode.DISABLEDLight is not baked and contributes only to real-time lighting
light.directional.bake_mode.STATICLight is baked into lightmaps and global illumination, and does not update at runtime
light.directional.bake_mode.DYNAMICLight is baked into global illumination but can still be modified at runtime

Examples

Set the bake mode of a directional light
local entity = light.directional.create()

entity:set_bake_mode(light.directional.bake_mode.STATIC)

On this page