class_bakedlightmap.rst 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the BakedLightmap.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_BakedLightmap:
  6. BakedLightmap
  7. =============
  8. **Inherits:** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`CullInstance<class_CullInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Prerendered indirect light map for a scene.
  10. Description
  11. -----------
  12. Baked lightmaps are an alternative workflow for adding indirect (or baked) lighting to a scene. Unlike the :ref:`GIProbe<class_GIProbe>` approach, baked lightmaps work fine on low-end PCs and mobile devices as they consume almost no resources in run-time.
  13. **Procedural generation:** Lightmap baking functionality is only available in the editor. This means ``BakedLightmap`` is not suited to procedurally generated or user-built levels. For procedurally generated or user-built levels, use :ref:`GIProbe<class_GIProbe>` instead.
  14. **Note:** Due to how lightmaps work, most properties only have a visible effect once lightmaps are baked again.
  15. Tutorials
  16. ---------
  17. - :doc:`../tutorials/3d/baked_lightmaps`
  18. Properties
  19. ----------
  20. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  21. | :ref:`bool<class_bool>` | :ref:`atlas_generate<class_BakedLightmap_property_atlas_generate>` | ``true`` |
  22. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  23. | :ref:`int<class_int>` | :ref:`atlas_max_size<class_BakedLightmap_property_atlas_max_size>` | ``4096`` |
  24. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  25. | :ref:`float<class_float>` | :ref:`bias<class_BakedLightmap_property_bias>` | ``0.005`` |
  26. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  27. | :ref:`float<class_float>` | :ref:`bounce_indirect_energy<class_BakedLightmap_property_bounce_indirect_energy>` | ``1.0`` |
  28. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  29. | :ref:`int<class_int>` | :ref:`bounces<class_BakedLightmap_property_bounces>` | ``3`` |
  30. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  31. | :ref:`float<class_float>` | :ref:`capture_cell_size<class_BakedLightmap_property_capture_cell_size>` | ``0.5`` |
  32. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  33. | :ref:`bool<class_bool>` | :ref:`capture_enabled<class_BakedLightmap_property_capture_enabled>` | ``true`` |
  34. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  35. | :ref:`float<class_float>` | :ref:`capture_propagation<class_BakedLightmap_property_capture_propagation>` | ``1.0`` |
  36. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  37. | :ref:`BakeQuality<enum_BakedLightmap_BakeQuality>` | :ref:`capture_quality<class_BakedLightmap_property_capture_quality>` | ``1`` |
  38. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  39. | :ref:`float<class_float>` | :ref:`default_texels_per_unit<class_BakedLightmap_property_default_texels_per_unit>` | ``16.0`` |
  40. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  41. | :ref:`Color<class_Color>` | :ref:`environment_custom_color<class_BakedLightmap_property_environment_custom_color>` | |
  42. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  43. | :ref:`float<class_float>` | :ref:`environment_custom_energy<class_BakedLightmap_property_environment_custom_energy>` | |
  44. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  45. | :ref:`Sky<class_Sky>` | :ref:`environment_custom_sky<class_BakedLightmap_property_environment_custom_sky>` | |
  46. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  47. | :ref:`Vector3<class_Vector3>` | :ref:`environment_custom_sky_rotation_degrees<class_BakedLightmap_property_environment_custom_sky_rotation_degrees>` | |
  48. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  49. | :ref:`Color<class_Color>` | :ref:`environment_min_light<class_BakedLightmap_property_environment_min_light>` | ``Color( 0, 0, 0, 1 )`` |
  50. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  51. | :ref:`EnvironmentMode<enum_BakedLightmap_EnvironmentMode>` | :ref:`environment_mode<class_BakedLightmap_property_environment_mode>` | ``0`` |
  52. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  53. | :ref:`Vector3<class_Vector3>` | :ref:`extents<class_BakedLightmap_property_extents>` | ``Vector3( 10, 10, 10 )`` |
  54. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  55. | :ref:`String<class_String>` | :ref:`image_path<class_BakedLightmap_property_image_path>` | |
  56. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  57. | :ref:`BakedLightmapData<class_BakedLightmapData>` | :ref:`light_data<class_BakedLightmap_property_light_data>` | |
  58. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  59. | :ref:`BakeQuality<enum_BakedLightmap_BakeQuality>` | :ref:`quality<class_BakedLightmap_property_quality>` | ``1`` |
  60. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  61. | :ref:`bool<class_bool>` | :ref:`use_color<class_BakedLightmap_property_use_color>` | ``true`` |
  62. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  63. | :ref:`bool<class_bool>` | :ref:`use_denoiser<class_BakedLightmap_property_use_denoiser>` | ``true`` |
  64. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  65. | :ref:`bool<class_bool>` | :ref:`use_hdr<class_BakedLightmap_property_use_hdr>` | ``true`` |
  66. +------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+---------------------------+
  67. Methods
  68. -------
  69. +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | :ref:`BakeError<enum_BakedLightmap_BakeError>` | :ref:`bake<class_BakedLightmap_method_bake>` **(** :ref:`Node<class_Node>` from_node=null, :ref:`String<class_String>` data_save_path="" **)** |
  71. +------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
  72. Enumerations
  73. ------------
  74. .. _enum_BakedLightmap_BakeQuality:
  75. .. _class_BakedLightmap_constant_BAKE_QUALITY_LOW:
  76. .. _class_BakedLightmap_constant_BAKE_QUALITY_MEDIUM:
  77. .. _class_BakedLightmap_constant_BAKE_QUALITY_HIGH:
  78. .. _class_BakedLightmap_constant_BAKE_QUALITY_ULTRA:
  79. enum **BakeQuality**:
  80. - **BAKE_QUALITY_LOW** = **0** --- The lowest bake quality mode. Fastest to calculate.
  81. - **BAKE_QUALITY_MEDIUM** = **1** --- The default bake quality mode.
  82. - **BAKE_QUALITY_HIGH** = **2** --- A higher bake quality mode. Takes longer to calculate.
  83. - **BAKE_QUALITY_ULTRA** = **3** --- The highest bake quality mode. Takes the longest to calculate.
  84. ----
  85. .. _enum_BakedLightmap_BakeError:
  86. .. _class_BakedLightmap_constant_BAKE_ERROR_OK:
  87. .. _class_BakedLightmap_constant_BAKE_ERROR_NO_SAVE_PATH:
  88. .. _class_BakedLightmap_constant_BAKE_ERROR_NO_MESHES:
  89. .. _class_BakedLightmap_constant_BAKE_ERROR_CANT_CREATE_IMAGE:
  90. .. _class_BakedLightmap_constant_BAKE_ERROR_LIGHTMAP_SIZE:
  91. .. _class_BakedLightmap_constant_BAKE_ERROR_INVALID_MESH:
  92. .. _class_BakedLightmap_constant_BAKE_ERROR_USER_ABORTED:
  93. .. _class_BakedLightmap_constant_BAKE_ERROR_NO_LIGHTMAPPER:
  94. .. _class_BakedLightmap_constant_BAKE_ERROR_NO_ROOT:
  95. enum **BakeError**:
  96. - **BAKE_ERROR_OK** = **0** --- Baking was successful.
  97. - **BAKE_ERROR_NO_SAVE_PATH** = **1** --- Returns if no viable save path is found. This can happen where an :ref:`image_path<class_BakedLightmap_property_image_path>` is not specified or when the save location is invalid.
  98. - **BAKE_ERROR_NO_MESHES** = **2** --- Currently unused.
  99. - **BAKE_ERROR_CANT_CREATE_IMAGE** = **3** --- Returns when the baker cannot save per-mesh textures to file.
  100. - **BAKE_ERROR_LIGHTMAP_SIZE** = **4** --- The size of the generated lightmaps is too large.
  101. - **BAKE_ERROR_INVALID_MESH** = **5** --- Some mesh contains UV2 values outside the ``[0,1]`` range.
  102. - **BAKE_ERROR_USER_ABORTED** = **6** --- Returns if user cancels baking.
  103. - **BAKE_ERROR_NO_LIGHTMAPPER** = **7** --- Returns if lightmapper can't be created. Unless you are using a custom lightmapper, please report this as bug.
  104. - **BAKE_ERROR_NO_ROOT** = **8** --- There is no root node to start baking from. Either provide ``from_node`` argument or attach this node to a parent that should be used as root.
  105. ----
  106. .. _enum_BakedLightmap_EnvironmentMode:
  107. .. _class_BakedLightmap_constant_ENVIRONMENT_MODE_DISABLED:
  108. .. _class_BakedLightmap_constant_ENVIRONMENT_MODE_SCENE:
  109. .. _class_BakedLightmap_constant_ENVIRONMENT_MODE_CUSTOM_SKY:
  110. .. _class_BakedLightmap_constant_ENVIRONMENT_MODE_CUSTOM_COLOR:
  111. enum **EnvironmentMode**:
  112. - **ENVIRONMENT_MODE_DISABLED** = **0** --- No environment is used during baking.
  113. - **ENVIRONMENT_MODE_SCENE** = **1** --- The baked environment is automatically picked from the current scene.
  114. - **ENVIRONMENT_MODE_CUSTOM_SKY** = **2** --- A custom sky is used as environment during baking.
  115. - **ENVIRONMENT_MODE_CUSTOM_COLOR** = **3** --- A custom solid color is used as environment during baking.
  116. Property Descriptions
  117. ---------------------
  118. .. _class_BakedLightmap_property_atlas_generate:
  119. - :ref:`bool<class_bool>` **atlas_generate**
  120. +-----------+-----------------------------+
  121. | *Default* | ``true`` |
  122. +-----------+-----------------------------+
  123. | *Setter* | set_generate_atlas(value) |
  124. +-----------+-----------------------------+
  125. | *Getter* | is_generate_atlas_enabled() |
  126. +-----------+-----------------------------+
  127. When enabled, the lightmapper will merge the textures for all meshes into a single large layered texture. Not supported in GLES2.
  128. ----
  129. .. _class_BakedLightmap_property_atlas_max_size:
  130. - :ref:`int<class_int>` **atlas_max_size**
  131. +-----------+---------------------------+
  132. | *Default* | ``4096`` |
  133. +-----------+---------------------------+
  134. | *Setter* | set_max_atlas_size(value) |
  135. +-----------+---------------------------+
  136. | *Getter* | get_max_atlas_size() |
  137. +-----------+---------------------------+
  138. Maximum size of each lightmap layer, only used when :ref:`atlas_generate<class_BakedLightmap_property_atlas_generate>` is enabled.
  139. ----
  140. .. _class_BakedLightmap_property_bias:
  141. - :ref:`float<class_float>` **bias**
  142. +-----------+-----------------+
  143. | *Default* | ``0.005`` |
  144. +-----------+-----------------+
  145. | *Setter* | set_bias(value) |
  146. +-----------+-----------------+
  147. | *Getter* | get_bias() |
  148. +-----------+-----------------+
  149. Raycasting bias used during baking to avoid floating point precision issues.
  150. ----
  151. .. _class_BakedLightmap_property_bounce_indirect_energy:
  152. - :ref:`float<class_float>` **bounce_indirect_energy**
  153. +-----------+-----------------------------------+
  154. | *Default* | ``1.0`` |
  155. +-----------+-----------------------------------+
  156. | *Setter* | set_bounce_indirect_energy(value) |
  157. +-----------+-----------------------------------+
  158. | *Getter* | get_bounce_indirect_energy() |
  159. +-----------+-----------------------------------+
  160. The energy multiplier for each bounce. Higher values will make indirect lighting brighter. A value of ``1.0`` represents physically accurate behavior, but higher values can be used to make indirect lighting propagate more visibly when using a low number of bounces. This can be used to speed up bake times by lowering the number of :ref:`bounces<class_BakedLightmap_property_bounces>` then increasing :ref:`bounce_indirect_energy<class_BakedLightmap_property_bounce_indirect_energy>`. Unlike :ref:`BakedLightmapData.energy<class_BakedLightmapData_property_energy>`, this property does not affect direct lighting emitted by light nodes, emissive materials and the environment.
  161. **Note:** :ref:`bounce_indirect_energy<class_BakedLightmap_property_bounce_indirect_energy>` only has an effect if :ref:`bounces<class_BakedLightmap_property_bounces>` is set to a value greater than or equal to ``1``.
  162. ----
  163. .. _class_BakedLightmap_property_bounces:
  164. - :ref:`int<class_int>` **bounces**
  165. +-----------+--------------------+
  166. | *Default* | ``3`` |
  167. +-----------+--------------------+
  168. | *Setter* | set_bounces(value) |
  169. +-----------+--------------------+
  170. | *Getter* | get_bounces() |
  171. +-----------+--------------------+
  172. Number of light bounces that are taken into account during baking. See also :ref:`bounce_indirect_energy<class_BakedLightmap_property_bounce_indirect_energy>`.
  173. ----
  174. .. _class_BakedLightmap_property_capture_cell_size:
  175. - :ref:`float<class_float>` **capture_cell_size**
  176. +-----------+------------------------------+
  177. | *Default* | ``0.5`` |
  178. +-----------+------------------------------+
  179. | *Setter* | set_capture_cell_size(value) |
  180. +-----------+------------------------------+
  181. | *Getter* | get_capture_cell_size() |
  182. +-----------+------------------------------+
  183. Grid size used for real-time capture information on dynamic objects.
  184. ----
  185. .. _class_BakedLightmap_property_capture_enabled:
  186. - :ref:`bool<class_bool>` **capture_enabled**
  187. +-----------+----------------------------+
  188. | *Default* | ``true`` |
  189. +-----------+----------------------------+
  190. | *Setter* | set_capture_enabled(value) |
  191. +-----------+----------------------------+
  192. | *Getter* | get_capture_enabled() |
  193. +-----------+----------------------------+
  194. When enabled, an octree containing the scene's lighting information will be computed. This octree will then be used to light dynamic objects in the scene.
  195. ----
  196. .. _class_BakedLightmap_property_capture_propagation:
  197. - :ref:`float<class_float>` **capture_propagation**
  198. +-----------+--------------------------------+
  199. | *Default* | ``1.0`` |
  200. +-----------+--------------------------------+
  201. | *Setter* | set_capture_propagation(value) |
  202. +-----------+--------------------------------+
  203. | *Getter* | get_capture_propagation() |
  204. +-----------+--------------------------------+
  205. Bias value to reduce the amount of light propagation in the captured octree.
  206. ----
  207. .. _class_BakedLightmap_property_capture_quality:
  208. - :ref:`BakeQuality<enum_BakedLightmap_BakeQuality>` **capture_quality**
  209. +-----------+----------------------------+
  210. | *Default* | ``1`` |
  211. +-----------+----------------------------+
  212. | *Setter* | set_capture_quality(value) |
  213. +-----------+----------------------------+
  214. | *Getter* | get_capture_quality() |
  215. +-----------+----------------------------+
  216. Bake quality of the capture data.
  217. ----
  218. .. _class_BakedLightmap_property_default_texels_per_unit:
  219. - :ref:`float<class_float>` **default_texels_per_unit**
  220. +-----------+------------------------------------+
  221. | *Default* | ``16.0`` |
  222. +-----------+------------------------------------+
  223. | *Setter* | set_default_texels_per_unit(value) |
  224. +-----------+------------------------------------+
  225. | *Getter* | get_default_texels_per_unit() |
  226. +-----------+------------------------------------+
  227. If a baked mesh doesn't have a UV2 size hint, this value will be used to roughly compute a suitable lightmap size.
  228. ----
  229. .. _class_BakedLightmap_property_environment_custom_color:
  230. - :ref:`Color<class_Color>` **environment_custom_color**
  231. +----------+-------------------------------------+
  232. | *Setter* | set_environment_custom_color(value) |
  233. +----------+-------------------------------------+
  234. | *Getter* | get_environment_custom_color() |
  235. +----------+-------------------------------------+
  236. The environment color when :ref:`environment_mode<class_BakedLightmap_property_environment_mode>` is set to :ref:`ENVIRONMENT_MODE_CUSTOM_COLOR<class_BakedLightmap_constant_ENVIRONMENT_MODE_CUSTOM_COLOR>`.
  237. ----
  238. .. _class_BakedLightmap_property_environment_custom_energy:
  239. - :ref:`float<class_float>` **environment_custom_energy**
  240. +----------+--------------------------------------+
  241. | *Setter* | set_environment_custom_energy(value) |
  242. +----------+--------------------------------------+
  243. | *Getter* | get_environment_custom_energy() |
  244. +----------+--------------------------------------+
  245. The energy scaling factor when when :ref:`environment_mode<class_BakedLightmap_property_environment_mode>` is set to :ref:`ENVIRONMENT_MODE_CUSTOM_COLOR<class_BakedLightmap_constant_ENVIRONMENT_MODE_CUSTOM_COLOR>` or :ref:`ENVIRONMENT_MODE_CUSTOM_SKY<class_BakedLightmap_constant_ENVIRONMENT_MODE_CUSTOM_SKY>`.
  246. ----
  247. .. _class_BakedLightmap_property_environment_custom_sky:
  248. - :ref:`Sky<class_Sky>` **environment_custom_sky**
  249. +----------+-----------------------------------+
  250. | *Setter* | set_environment_custom_sky(value) |
  251. +----------+-----------------------------------+
  252. | *Getter* | get_environment_custom_sky() |
  253. +----------+-----------------------------------+
  254. The :ref:`Sky<class_Sky>` resource to use when :ref:`environment_mode<class_BakedLightmap_property_environment_mode>` is set o :ref:`ENVIRONMENT_MODE_CUSTOM_SKY<class_BakedLightmap_constant_ENVIRONMENT_MODE_CUSTOM_SKY>`.
  255. ----
  256. .. _class_BakedLightmap_property_environment_custom_sky_rotation_degrees:
  257. - :ref:`Vector3<class_Vector3>` **environment_custom_sky_rotation_degrees**
  258. +----------+----------------------------------------------------+
  259. | *Setter* | set_environment_custom_sky_rotation_degrees(value) |
  260. +----------+----------------------------------------------------+
  261. | *Getter* | get_environment_custom_sky_rotation_degrees() |
  262. +----------+----------------------------------------------------+
  263. The rotation of the baked custom sky.
  264. ----
  265. .. _class_BakedLightmap_property_environment_min_light:
  266. - :ref:`Color<class_Color>` **environment_min_light**
  267. +-----------+----------------------------------+
  268. | *Default* | ``Color( 0, 0, 0, 1 )`` |
  269. +-----------+----------------------------------+
  270. | *Setter* | set_environment_min_light(value) |
  271. +-----------+----------------------------------+
  272. | *Getter* | get_environment_min_light() |
  273. +-----------+----------------------------------+
  274. Minimum ambient light for all the lightmap texels. This doesn't take into account any occlusion from the scene's geometry, it simply ensures a minimum amount of light on all the lightmap texels. Can be used for artistic control on shadow color.
  275. ----
  276. .. _class_BakedLightmap_property_environment_mode:
  277. - :ref:`EnvironmentMode<enum_BakedLightmap_EnvironmentMode>` **environment_mode**
  278. +-----------+-----------------------------+
  279. | *Default* | ``0`` |
  280. +-----------+-----------------------------+
  281. | *Setter* | set_environment_mode(value) |
  282. +-----------+-----------------------------+
  283. | *Getter* | get_environment_mode() |
  284. +-----------+-----------------------------+
  285. Decides which environment to use during baking.
  286. ----
  287. .. _class_BakedLightmap_property_extents:
  288. - :ref:`Vector3<class_Vector3>` **extents**
  289. +-----------+---------------------------+
  290. | *Default* | ``Vector3( 10, 10, 10 )`` |
  291. +-----------+---------------------------+
  292. | *Setter* | set_extents(value) |
  293. +-----------+---------------------------+
  294. | *Getter* | get_extents() |
  295. +-----------+---------------------------+
  296. Size of the baked lightmap. Only meshes inside this region will be included in the baked lightmap, also used as the bounds of the captured region for dynamic lighting.
  297. ----
  298. .. _class_BakedLightmap_property_image_path:
  299. - :ref:`String<class_String>` **image_path**
  300. +----------+-----------------------+
  301. | *Setter* | set_image_path(value) |
  302. +----------+-----------------------+
  303. | *Getter* | get_image_path() |
  304. +----------+-----------------------+
  305. Deprecated, in previous versions it determined the location where lightmaps were be saved.
  306. ----
  307. .. _class_BakedLightmap_property_light_data:
  308. - :ref:`BakedLightmapData<class_BakedLightmapData>` **light_data**
  309. +----------+-----------------------+
  310. | *Setter* | set_light_data(value) |
  311. +----------+-----------------------+
  312. | *Getter* | get_light_data() |
  313. +----------+-----------------------+
  314. The calculated light data.
  315. ----
  316. .. _class_BakedLightmap_property_quality:
  317. - :ref:`BakeQuality<enum_BakedLightmap_BakeQuality>` **quality**
  318. +-----------+-------------------------+
  319. | *Default* | ``1`` |
  320. +-----------+-------------------------+
  321. | *Setter* | set_bake_quality(value) |
  322. +-----------+-------------------------+
  323. | *Getter* | get_bake_quality() |
  324. +-----------+-------------------------+
  325. Determines the amount of samples per texel used in indirect light baking. The amount of samples for each quality level can be configured in the project settings.
  326. ----
  327. .. _class_BakedLightmap_property_use_color:
  328. - :ref:`bool<class_bool>` **use_color**
  329. +-----------+----------------------+
  330. | *Default* | ``true`` |
  331. +-----------+----------------------+
  332. | *Setter* | set_use_color(value) |
  333. +-----------+----------------------+
  334. | *Getter* | is_using_color() |
  335. +-----------+----------------------+
  336. Store full color values in the lightmap textures. When disabled, lightmap textures will store a single brightness channel. Can be disabled to reduce disk usage if the scene contains only white lights or you don't mind losing color information in indirect lighting.
  337. ----
  338. .. _class_BakedLightmap_property_use_denoiser:
  339. - :ref:`bool<class_bool>` **use_denoiser**
  340. +-----------+-------------------------+
  341. | *Default* | ``true`` |
  342. +-----------+-------------------------+
  343. | *Setter* | set_use_denoiser(value) |
  344. +-----------+-------------------------+
  345. | *Getter* | is_using_denoiser() |
  346. +-----------+-------------------------+
  347. When enabled, a lightmap denoiser will be used to reduce the noise inherent to Monte Carlo based global illumination.
  348. ----
  349. .. _class_BakedLightmap_property_use_hdr:
  350. - :ref:`bool<class_bool>` **use_hdr**
  351. +-----------+--------------------+
  352. | *Default* | ``true`` |
  353. +-----------+--------------------+
  354. | *Setter* | set_use_hdr(value) |
  355. +-----------+--------------------+
  356. | *Getter* | is_using_hdr() |
  357. +-----------+--------------------+
  358. If ``true``, stores the lightmap textures in a high dynamic range format (EXR). If ``false``, stores the lightmap texture in a low dynamic range PNG image. This can be set to ``false`` to reduce disk usage, but light values over 1.0 will be clamped and you may see banding caused by the reduced precision.
  359. **Note:** Setting :ref:`use_hdr<class_BakedLightmap_property_use_hdr>` to ``true`` will decrease lightmap banding even when using the GLES2 backend or if :ref:`ProjectSettings.rendering/quality/depth/hdr<class_ProjectSettings_property_rendering/quality/depth/hdr>` is ``false``.
  360. Method Descriptions
  361. -------------------
  362. .. _class_BakedLightmap_method_bake:
  363. - :ref:`BakeError<enum_BakedLightmap_BakeError>` **bake** **(** :ref:`Node<class_Node>` from_node=null, :ref:`String<class_String>` data_save_path="" **)**
  364. Bakes the lightmap, scanning from the given ``from_node`` root and saves the resulting :ref:`BakedLightmapData<class_BakedLightmapData>` in ``data_save_path``. If no root node is provided, parent of this node will be used as root instead. If no save path is provided it will try to match the path from the current :ref:`light_data<class_BakedLightmap_property_light_data>`.
  365. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  366. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  367. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`