class_giprobedata.rst 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the GIProbeData.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_GIProbeData:
  6. GIProbeData
  7. ===========
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Properties
  10. ----------
  11. +---------------------------+----------------------------------------------------------------------------+-----------+
  12. | :ref:`float<class_float>` | :ref:`anisotropy_strength<class_GIProbeData_property_anisotropy_strength>` | ``0.5`` |
  13. +---------------------------+----------------------------------------------------------------------------+-----------+
  14. | :ref:`float<class_float>` | :ref:`ao<class_GIProbeData_property_ao>` | ``0.0`` |
  15. +---------------------------+----------------------------------------------------------------------------+-----------+
  16. | :ref:`float<class_float>` | :ref:`ao_size<class_GIProbeData_property_ao_size>` | ``0.5`` |
  17. +---------------------------+----------------------------------------------------------------------------+-----------+
  18. | :ref:`float<class_float>` | :ref:`bias<class_GIProbeData_property_bias>` | ``1.5`` |
  19. +---------------------------+----------------------------------------------------------------------------+-----------+
  20. | :ref:`float<class_float>` | :ref:`dynamic_range<class_GIProbeData_property_dynamic_range>` | ``4.0`` |
  21. +---------------------------+----------------------------------------------------------------------------+-----------+
  22. | :ref:`float<class_float>` | :ref:`energy<class_GIProbeData_property_energy>` | ``1.0`` |
  23. +---------------------------+----------------------------------------------------------------------------+-----------+
  24. | :ref:`bool<class_bool>` | :ref:`interior<class_GIProbeData_property_interior>` | ``false`` |
  25. +---------------------------+----------------------------------------------------------------------------+-----------+
  26. | :ref:`float<class_float>` | :ref:`normal_bias<class_GIProbeData_property_normal_bias>` | ``0.0`` |
  27. +---------------------------+----------------------------------------------------------------------------+-----------+
  28. | :ref:`float<class_float>` | :ref:`propagation<class_GIProbeData_property_propagation>` | ``0.7`` |
  29. +---------------------------+----------------------------------------------------------------------------+-----------+
  30. | :ref:`bool<class_bool>` | :ref:`use_two_bounces<class_GIProbeData_property_use_two_bounces>` | ``false`` |
  31. +---------------------------+----------------------------------------------------------------------------+-----------+
  32. Methods
  33. -------
  34. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | void | :ref:`allocate<class_GIProbeData_method_allocate>` **(** :ref:`Transform<class_Transform>` to_cell_xform, :ref:`AABB<class_AABB>` aabb, :ref:`Vector3<class_Vector3>` octree_size, :ref:`PackedByteArray<class_PackedByteArray>` octree_cells, :ref:`PackedByteArray<class_PackedByteArray>` data_cells, :ref:`PackedByteArray<class_PackedByteArray>` distance_field, :ref:`PackedInt32Array<class_PackedInt32Array>` level_counts **)** |
  36. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`AABB<class_AABB>` | :ref:`get_bounds<class_GIProbeData_method_get_bounds>` **(** **)** const |
  38. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`get_data_cells<class_GIProbeData_method_get_data_cells>` **(** **)** const |
  40. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`get_level_counts<class_GIProbeData_method_get_level_counts>` **(** **)** const |
  42. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`get_octree_cells<class_GIProbeData_method_get_octree_cells>` **(** **)** const |
  44. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`Vector3<class_Vector3>` | :ref:`get_octree_size<class_GIProbeData_method_get_octree_size>` **(** **)** const |
  46. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`Transform<class_Transform>` | :ref:`get_to_cell_xform<class_GIProbeData_method_get_to_cell_xform>` **(** **)** const |
  48. +-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. Property Descriptions
  50. ---------------------
  51. .. _class_GIProbeData_property_anisotropy_strength:
  52. - :ref:`float<class_float>` **anisotropy_strength**
  53. +-----------+--------------------------------+
  54. | *Default* | ``0.5`` |
  55. +-----------+--------------------------------+
  56. | *Setter* | set_anisotropy_strength(value) |
  57. +-----------+--------------------------------+
  58. | *Getter* | get_anisotropy_strength() |
  59. +-----------+--------------------------------+
  60. ----
  61. .. _class_GIProbeData_property_ao:
  62. - :ref:`float<class_float>` **ao**
  63. +-----------+---------------+
  64. | *Default* | ``0.0`` |
  65. +-----------+---------------+
  66. | *Setter* | set_ao(value) |
  67. +-----------+---------------+
  68. | *Getter* | get_ao() |
  69. +-----------+---------------+
  70. ----
  71. .. _class_GIProbeData_property_ao_size:
  72. - :ref:`float<class_float>` **ao_size**
  73. +-----------+--------------------+
  74. | *Default* | ``0.5`` |
  75. +-----------+--------------------+
  76. | *Setter* | set_ao_size(value) |
  77. +-----------+--------------------+
  78. | *Getter* | get_ao_size() |
  79. +-----------+--------------------+
  80. ----
  81. .. _class_GIProbeData_property_bias:
  82. - :ref:`float<class_float>` **bias**
  83. +-----------+-----------------+
  84. | *Default* | ``1.5`` |
  85. +-----------+-----------------+
  86. | *Setter* | set_bias(value) |
  87. +-----------+-----------------+
  88. | *Getter* | get_bias() |
  89. +-----------+-----------------+
  90. ----
  91. .. _class_GIProbeData_property_dynamic_range:
  92. - :ref:`float<class_float>` **dynamic_range**
  93. +-----------+--------------------------+
  94. | *Default* | ``4.0`` |
  95. +-----------+--------------------------+
  96. | *Setter* | set_dynamic_range(value) |
  97. +-----------+--------------------------+
  98. | *Getter* | get_dynamic_range() |
  99. +-----------+--------------------------+
  100. ----
  101. .. _class_GIProbeData_property_energy:
  102. - :ref:`float<class_float>` **energy**
  103. +-----------+-------------------+
  104. | *Default* | ``1.0`` |
  105. +-----------+-------------------+
  106. | *Setter* | set_energy(value) |
  107. +-----------+-------------------+
  108. | *Getter* | get_energy() |
  109. +-----------+-------------------+
  110. ----
  111. .. _class_GIProbeData_property_interior:
  112. - :ref:`bool<class_bool>` **interior**
  113. +-----------+---------------------+
  114. | *Default* | ``false`` |
  115. +-----------+---------------------+
  116. | *Setter* | set_interior(value) |
  117. +-----------+---------------------+
  118. | *Getter* | is_interior() |
  119. +-----------+---------------------+
  120. ----
  121. .. _class_GIProbeData_property_normal_bias:
  122. - :ref:`float<class_float>` **normal_bias**
  123. +-----------+------------------------+
  124. | *Default* | ``0.0`` |
  125. +-----------+------------------------+
  126. | *Setter* | set_normal_bias(value) |
  127. +-----------+------------------------+
  128. | *Getter* | get_normal_bias() |
  129. +-----------+------------------------+
  130. ----
  131. .. _class_GIProbeData_property_propagation:
  132. - :ref:`float<class_float>` **propagation**
  133. +-----------+------------------------+
  134. | *Default* | ``0.7`` |
  135. +-----------+------------------------+
  136. | *Setter* | set_propagation(value) |
  137. +-----------+------------------------+
  138. | *Getter* | get_propagation() |
  139. +-----------+------------------------+
  140. ----
  141. .. _class_GIProbeData_property_use_two_bounces:
  142. - :ref:`bool<class_bool>` **use_two_bounces**
  143. +-----------+----------------------------+
  144. | *Default* | ``false`` |
  145. +-----------+----------------------------+
  146. | *Setter* | set_use_two_bounces(value) |
  147. +-----------+----------------------------+
  148. | *Getter* | is_using_two_bounces() |
  149. +-----------+----------------------------+
  150. Method Descriptions
  151. -------------------
  152. .. _class_GIProbeData_method_allocate:
  153. - void **allocate** **(** :ref:`Transform<class_Transform>` to_cell_xform, :ref:`AABB<class_AABB>` aabb, :ref:`Vector3<class_Vector3>` octree_size, :ref:`PackedByteArray<class_PackedByteArray>` octree_cells, :ref:`PackedByteArray<class_PackedByteArray>` data_cells, :ref:`PackedByteArray<class_PackedByteArray>` distance_field, :ref:`PackedInt32Array<class_PackedInt32Array>` level_counts **)**
  154. ----
  155. .. _class_GIProbeData_method_get_bounds:
  156. - :ref:`AABB<class_AABB>` **get_bounds** **(** **)** const
  157. ----
  158. .. _class_GIProbeData_method_get_data_cells:
  159. - :ref:`PackedByteArray<class_PackedByteArray>` **get_data_cells** **(** **)** const
  160. ----
  161. .. _class_GIProbeData_method_get_level_counts:
  162. - :ref:`PackedInt32Array<class_PackedInt32Array>` **get_level_counts** **(** **)** const
  163. ----
  164. .. _class_GIProbeData_method_get_octree_cells:
  165. - :ref:`PackedByteArray<class_PackedByteArray>` **get_octree_cells** **(** **)** const
  166. ----
  167. .. _class_GIProbeData_method_get_octree_size:
  168. - :ref:`Vector3<class_Vector3>` **get_octree_size** **(** **)** const
  169. ----
  170. .. _class_GIProbeData_method_get_to_cell_xform:
  171. - :ref:`Transform<class_Transform>` **get_to_cell_xform** **(** **)** const