BAKE_DISABLED:null = 0
Light is ignored when baking. This is the fastest mode, but the light will not be taken into account when baking global illumination. This mode should generally be used for dynamic lights that change quickly, as the effect of global illumination is less noticeable on those lights.
Note: Hiding a light does
not affect baking
LightmapGI. Hiding a light will still affect baking
VoxelGI and SDFGI (see [member Environment.sdfgi_enabled]).
BAKE_STATIC:null = 1
Light is taken into account in static baking (
VoxelGI,
LightmapGI, SDFGI ([member Environment.sdfgi_enabled])). The light can be moved around or modified, but its global illumination will not update in real-time. This is suitable for subtle changes (such as flickering torches), but generally not large changes such as toggling a light on and off.
Note: The light is not baked in
LightmapGI if
editor_only is
true.
BAKE_DYNAMIC:null = 2
Light is taken into account in dynamic baking (
VoxelGI and SDFGI ([member Environment.sdfgi_enabled]) only). The light can be moved around or modified with global illumination updating in real-time. The light's global illumination appearance will be slightly different compared to
BAKE_STATIC. This has a greater performance cost compared to
BAKE_STATIC. When using SDFGI, the update speed of dynamic lights is affected by [member ProjectSettings.rendering/global_illumination/sdfgi/frames_to_update_lights].