Inherits: Resource < RefCounted < Object
Contains baked lightmap and dynamic object probe data for LightmapGI.
LightmapGIData contains baked lightmap and dynamic object probe data for LightmapGI. It is replaced every time lightmaps are baked in LightmapGI.
|
void | add_user ( NodePath path, Rect2 uv_scale, int slice_index, int sub_instance ) |
void | clear_users ( ) |
get_user_count ( ) const | |
get_user_path ( int user_idx ) const | |
is_using_spherical_harmonics ( ) const | |
void | set_uses_spherical_harmonics ( bool uses_spherical_harmonics ) |
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.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_lightmapgidata.html