Spot Light

light.spot.bake_mode

Client

Enumeration of baking behaviors for a spot light

Values

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

Examples

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

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

On this page