LightmapGIData contains baked lightmap and dynamic object probe data for LightmapGI. It is replaced every time lightmaps are baked in LightmapGI.
The lightmap atlas texture generated by the lightmapper.
Deprecated. The lightmap atlas can now have multiple textures. See lightmap_textures.
The lightmap atlas textures generated by the lightmapper.
Adds an object that is considered baked within this LightmapGIData.
Clear all objects that are considered baked within this LightmapGIData.
Returns the number of objects that are considered baked within this LightmapGIData.
Returns the NodePath of the baked object at index user_idx
.
If true
, lightmaps were baked with directional information. See also LightmapGI.directional.
If uses_spherical_harmonics
is true
, tells the engine to treat the lightmap data as if it was baked with directional information.
Note: Changing this value on already baked lightmaps will not cause them to be baked again. This means the material appearance will look incorrect until lightmaps are baked again, in which case the value set here is discarded as the entire LightmapGIData resource is replaced by the lightmapper.