2020-05-12 08:10:34 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 08:08:05 +00:00
<class name= "LightmapGIData" inherits= "Resource" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2020-05-12 08:10:34 +00:00
<brief_description >
2022-06-10 20:29:22 +00:00
Contains baked lightmap and dynamic object probe data for [LightmapGI].
2020-05-12 08:10:34 +00:00
</brief_description>
<description >
2022-06-10 20:29:22 +00:00
[LightmapGIData] contains baked lightmap and dynamic object probe data for [LightmapGI]. It is replaced every time lightmaps are baked in [LightmapGI].
2020-05-12 08:10:34 +00:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "add_user" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "path" type= "NodePath" />
<param index= "1" name= "uv_scale" type= "Rect2" />
<param index= "2" name= "slice_index" type= "int" />
<param index= "3" name= "sub_instance" type= "int" />
2020-05-12 08:10:34 +00:00
<description >
2022-06-10 20:29:22 +00:00
Adds an object that is considered baked within this [LightmapGIData].
2020-05-12 08:10:34 +00:00
</description>
</method>
<method name= "clear_users" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2020-05-12 08:10:34 +00:00
<description >
2022-07-21 11:37:00 +00:00
Clear all objects that are considered baked within this [LightmapGIData].
2020-05-12 08:10:34 +00:00
</description>
</method>
<method name= "get_user_count" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "int" />
2020-05-12 08:10:34 +00:00
<description >
2022-06-10 20:29:22 +00:00
Returns the number of objects that are considered baked within this [LightmapGIData].
2020-05-12 08:10:34 +00:00
</description>
</method>
<method name= "get_user_path" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "NodePath" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "user_idx" type= "int" />
2020-05-12 08:10:34 +00:00
<description >
2022-08-12 13:36:48 +00:00
Returns the [NodePath] of the baked object at index [param user_idx].
2020-05-12 08:10:34 +00:00
</description>
</method>
<method name= "is_using_spherical_harmonics" qualifiers= "const" >
2021-07-30 13:28:05 +00:00
<return type= "bool" />
2020-05-12 08:10:34 +00:00
<description >
2022-06-10 20:29:22 +00:00
If [code]true[/code], lightmaps were baked with directional information. See also [member LightmapGI.directional].
2020-05-12 08:10:34 +00:00
</description>
</method>
<method name= "set_uses_spherical_harmonics" >
2021-07-30 13:28:05 +00:00
<return type= "void" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "uses_spherical_harmonics" type= "bool" />
2020-05-12 08:10:34 +00:00
<description >
2022-08-12 13:36:48 +00:00
If [param uses_spherical_harmonics] is [code]true[/code], tells the engine to treat the lightmap data as if it was baked with directional information.
2022-06-10 20:29:22 +00:00
[b]Note:[/b] 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.
2020-05-12 08:10:34 +00:00
</description>
</method>
</methods>
<members >
2023-06-02 22:09:40 +00:00
<member name= "light_texture" type= "TextureLayered" setter= "set_light_texture" getter= "get_light_texture" is_deprecated= "true" >
2022-06-10 20:29:22 +00:00
The lightmap atlas texture generated by the lightmapper.
2023-06-02 22:09:40 +00:00
[i]Deprecated.[/i] The lightmap atlas can now have multiple textures. See [member lightmap_textures].
</member>
<member name= "lightmap_textures" type= "TextureLayered[]" setter= "set_lightmap_textures" getter= "get_lightmap_textures" default= "[]" >
The lightmap atlas textures generated by the lightmapper.
2020-05-12 08:10:34 +00:00
</member>
</members>
</class>