Area Light

light.area.bake_mode

Client

Enumeration of baking behaviors for a area light

Values

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

Examples

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

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

On this page