Attention: Here be dragons
This is the
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Contains baked lightmap and dynamic object probe data for LightmapGI.
clear_users ( )
get_user_count ( ) const
is_using_spherical_harmonics ( ) const
The lightmap atlas texture generated by the lightmapper.
Adds an object that is considered baked within this LightmapGIData.
void clear_users ( )
Clear all objects that are considered baked within this LightmapGIData.
int get_user_count ( ) const
Returns the number of objects that are considered baked within this LightmapGIData.
Returns the NodePath of the baked object at index
bool is_using_spherical_harmonics ( ) const
true, lightmaps were baked with directional information. See also LightmapGI.directional.
void set_uses_spherical_harmonics ( bool uses_spherical_harmonics )
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.