class_bakedlightmapdata.rst 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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 BakedLightmapData.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_BakedLightmapData:
  6. BakedLightmapData
  7. =================
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Properties
  10. ----------
  11. +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+
  12. | :ref:`AABB<class_AABB>` | :ref:`bounds<class_BakedLightmapData_property_bounds>` | ``AABB( 0, 0, 0, 0, 0, 0 )`` |
  13. +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+
  14. | :ref:`Transform<class_Transform>` | :ref:`cell_space_transform<class_BakedLightmapData_property_cell_space_transform>` | ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` |
  15. +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+
  16. | :ref:`int<class_int>` | :ref:`cell_subdiv<class_BakedLightmapData_property_cell_subdiv>` | ``1`` |
  17. +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+
  18. | :ref:`float<class_float>` | :ref:`energy<class_BakedLightmapData_property_energy>` | ``1.0`` |
  19. +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+
  20. | :ref:`bool<class_bool>` | :ref:`interior<class_BakedLightmapData_property_interior>` | ``false`` |
  21. +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+
  22. | :ref:`PoolByteArray<class_PoolByteArray>` | :ref:`octree<class_BakedLightmapData_property_octree>` | ``PoolByteArray( )`` |
  23. +-------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+
  24. Methods
  25. -------
  26. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | void | :ref:`add_user<class_BakedLightmapData_method_add_user>` **(** :ref:`NodePath<class_NodePath>` path, :ref:`Resource<class_Resource>` lightmap, :ref:`int<class_int>` lightmap_slice, :ref:`Rect2<class_Rect2>` lightmap_uv_rect, :ref:`int<class_int>` instance **)** |
  28. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | void | :ref:`clear_data<class_BakedLightmapData_method_clear_data>` **(** **)** |
  30. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | void | :ref:`clear_users<class_BakedLightmapData_method_clear_users>` **(** **)** |
  32. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`int<class_int>` | :ref:`get_user_count<class_BakedLightmapData_method_get_user_count>` **(** **)** |const| |
  34. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`Resource<class_Resource>` | :ref:`get_user_lightmap<class_BakedLightmapData_method_get_user_lightmap>` **(** :ref:`int<class_int>` user_idx **)** |const| |
  36. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`NodePath<class_NodePath>` | :ref:`get_user_path<class_BakedLightmapData_method_get_user_path>` **(** :ref:`int<class_int>` user_idx **)** |const| |
  38. +---------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. Property Descriptions
  40. ---------------------
  41. .. _class_BakedLightmapData_property_bounds:
  42. - :ref:`AABB<class_AABB>` **bounds**
  43. +-----------+------------------------------+
  44. | *Default* | ``AABB( 0, 0, 0, 0, 0, 0 )`` |
  45. +-----------+------------------------------+
  46. | *Setter* | set_bounds(value) |
  47. +-----------+------------------------------+
  48. | *Getter* | get_bounds() |
  49. +-----------+------------------------------+
  50. ----
  51. .. _class_BakedLightmapData_property_cell_space_transform:
  52. - :ref:`Transform<class_Transform>` **cell_space_transform**
  53. +-----------+-----------------------------------------------------+
  54. | *Default* | ``Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )`` |
  55. +-----------+-----------------------------------------------------+
  56. | *Setter* | set_cell_space_transform(value) |
  57. +-----------+-----------------------------------------------------+
  58. | *Getter* | get_cell_space_transform() |
  59. +-----------+-----------------------------------------------------+
  60. ----
  61. .. _class_BakedLightmapData_property_cell_subdiv:
  62. - :ref:`int<class_int>` **cell_subdiv**
  63. +-----------+------------------------+
  64. | *Default* | ``1`` |
  65. +-----------+------------------------+
  66. | *Setter* | set_cell_subdiv(value) |
  67. +-----------+------------------------+
  68. | *Getter* | get_cell_subdiv() |
  69. +-----------+------------------------+
  70. ----
  71. .. _class_BakedLightmapData_property_energy:
  72. - :ref:`float<class_float>` **energy**
  73. +-----------+-------------------+
  74. | *Default* | ``1.0`` |
  75. +-----------+-------------------+
  76. | *Setter* | set_energy(value) |
  77. +-----------+-------------------+
  78. | *Getter* | get_energy() |
  79. +-----------+-------------------+
  80. Global energy multiplier for baked and dynamic capture objects. This can be changed at run-time without having to bake lightmaps again.
  81. To adjust only the energy of indirect lighting (without affecting direct lighting or emissive materials), adjust :ref:`BakedLightmap.bounce_indirect_energy<class_BakedLightmap_property_bounce_indirect_energy>` and bake lightmaps again.
  82. ----
  83. .. _class_BakedLightmapData_property_interior:
  84. - :ref:`bool<class_bool>` **interior**
  85. +-----------+---------------------+
  86. | *Default* | ``false`` |
  87. +-----------+---------------------+
  88. | *Setter* | set_interior(value) |
  89. +-----------+---------------------+
  90. | *Getter* | is_interior() |
  91. +-----------+---------------------+
  92. Controls whether dynamic capture objects receive environment lighting or not.
  93. ----
  94. .. _class_BakedLightmapData_property_octree:
  95. - :ref:`PoolByteArray<class_PoolByteArray>` **octree**
  96. +-----------+-----------------------+
  97. | *Default* | ``PoolByteArray( )`` |
  98. +-----------+-----------------------+
  99. | *Setter* | set_octree(value) |
  100. +-----------+-----------------------+
  101. | *Getter* | get_octree() |
  102. +-----------+-----------------------+
  103. Method Descriptions
  104. -------------------
  105. .. _class_BakedLightmapData_method_add_user:
  106. - void **add_user** **(** :ref:`NodePath<class_NodePath>` path, :ref:`Resource<class_Resource>` lightmap, :ref:`int<class_int>` lightmap_slice, :ref:`Rect2<class_Rect2>` lightmap_uv_rect, :ref:`int<class_int>` instance **)**
  107. ----
  108. .. _class_BakedLightmapData_method_clear_data:
  109. - void **clear_data** **(** **)**
  110. ----
  111. .. _class_BakedLightmapData_method_clear_users:
  112. - void **clear_users** **(** **)**
  113. ----
  114. .. _class_BakedLightmapData_method_get_user_count:
  115. - :ref:`int<class_int>` **get_user_count** **(** **)** |const|
  116. ----
  117. .. _class_BakedLightmapData_method_get_user_lightmap:
  118. - :ref:`Resource<class_Resource>` **get_user_lightmap** **(** :ref:`int<class_int>` user_idx **)** |const|
  119. ----
  120. .. _class_BakedLightmapData_method_get_user_path:
  121. - :ref:`NodePath<class_NodePath>` **get_user_path** **(** :ref:`int<class_int>` user_idx **)** |const|
  122. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  123. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  124. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`