2020-05-12 16:10:34 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-06 16:08:05 +08:00
<class name= "LightmapGIData" inherits= "Resource" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2020-05-12 16:10:34 +08:00
<brief_description >
2022-06-11 04:29:22 +08:00
Contains baked lightmap and dynamic object probe data for [LightmapGI].
2020-05-12 16:10:34 +08:00
</brief_description>
<description >
2022-06-11 04:29:22 +08: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 16:10:34 +08:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "add_user" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08: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 16:10:34 +08:00
<description >
2022-06-11 04:29:22 +08:00
Adds an object that is considered baked within this [LightmapGIData].
2020-05-12 16:10:34 +08:00
</description>
</method>
<method name= "clear_users" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2020-05-12 16:10:34 +08:00
<description >
2022-07-21 19:37:00 +08:00
Clear all objects that are considered baked within this [LightmapGIData].
2020-05-12 16:10:34 +08:00
</description>
</method>
<method name= "get_user_count" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "int" />
2020-05-12 16:10:34 +08:00
<description >
2022-06-11 04:29:22 +08:00
Returns the number of objects that are considered baked within this [LightmapGIData].
2020-05-12 16:10:34 +08:00
</description>
</method>
<method name= "get_user_path" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "NodePath" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "user_idx" type= "int" />
2020-05-12 16:10:34 +08:00
<description >
2022-08-12 21:36:48 +08:00
Returns the [NodePath] of the baked object at index [param user_idx].
2020-05-12 16:10:34 +08:00
</description>
</method>
<method name= "is_using_spherical_harmonics" qualifiers= "const" >
2021-07-30 21:28:05 +08:00
<return type= "bool" />
2020-05-12 16:10:34 +08:00
<description >
2022-06-11 04:29:22 +08:00
If [code]true[/code], lightmaps were baked with directional information. See also [member LightmapGI.directional].
2020-05-12 16:10:34 +08:00
</description>
</method>
<method name= "set_uses_spherical_harmonics" >
2021-07-30 21:28:05 +08:00
<return type= "void" />
2022-08-07 02:11:48 +08:00
<param index= "0" name= "uses_spherical_harmonics" type= "bool" />
2020-05-12 16:10:34 +08:00
<description >
2022-08-12 21:36:48 +08: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-11 04:29:22 +08: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 16:10:34 +08:00
</description>
</method>
</methods>
<members >
2024-02-17 08:06:33 +08:00
<member name= "light_texture" type= "TextureLayered" setter= "set_light_texture" getter= "get_light_texture" deprecated= "The lightmap atlas can now contain multiple textures. See [member lightmap_textures]." >
2022-06-11 04:29:22 +08:00
The lightmap atlas texture generated by the lightmapper.
2023-06-03 06:09:40 +08:00
</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 16:10:34 +08:00
</member>
</members>
</class>