class_voxelgidata.rst 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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 VoxelGIData.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VoxelGIData:
  6. VoxelGIData
  7. ===========
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Tutorials
  10. ---------
  11. - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
  12. Properties
  13. ----------
  14. +---------------------------+--------------------------------------------------------------------+-----------+
  15. | :ref:`float<class_float>` | :ref:`bias<class_VoxelGIData_property_bias>` | ``1.5`` |
  16. +---------------------------+--------------------------------------------------------------------+-----------+
  17. | :ref:`float<class_float>` | :ref:`dynamic_range<class_VoxelGIData_property_dynamic_range>` | ``4.0`` |
  18. +---------------------------+--------------------------------------------------------------------+-----------+
  19. | :ref:`float<class_float>` | :ref:`energy<class_VoxelGIData_property_energy>` | ``1.0`` |
  20. +---------------------------+--------------------------------------------------------------------+-----------+
  21. | :ref:`bool<class_bool>` | :ref:`interior<class_VoxelGIData_property_interior>` | ``false`` |
  22. +---------------------------+--------------------------------------------------------------------+-----------+
  23. | :ref:`float<class_float>` | :ref:`normal_bias<class_VoxelGIData_property_normal_bias>` | ``0.0`` |
  24. +---------------------------+--------------------------------------------------------------------+-----------+
  25. | :ref:`float<class_float>` | :ref:`propagation<class_VoxelGIData_property_propagation>` | ``0.7`` |
  26. +---------------------------+--------------------------------------------------------------------+-----------+
  27. | :ref:`bool<class_bool>` | :ref:`use_two_bounces<class_VoxelGIData_property_use_two_bounces>` | ``false`` |
  28. +---------------------------+--------------------------------------------------------------------+-----------+
  29. Methods
  30. -------
  31. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  32. | void | :ref:`allocate<class_VoxelGIData_method_allocate>` **(** :ref:`Transform3D<class_Transform3D>` 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 **)** |
  33. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  34. | :ref:`AABB<class_AABB>` | :ref:`get_bounds<class_VoxelGIData_method_get_bounds>` **(** **)** |const| |
  35. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  36. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`get_data_cells<class_VoxelGIData_method_get_data_cells>` **(** **)** |const| |
  37. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  38. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`get_level_counts<class_VoxelGIData_method_get_level_counts>` **(** **)** |const| |
  39. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  40. | :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`get_octree_cells<class_VoxelGIData_method_get_octree_cells>` **(** **)** |const| |
  41. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  42. | :ref:`Vector3<class_Vector3>` | :ref:`get_octree_size<class_VoxelGIData_method_get_octree_size>` **(** **)** |const| |
  43. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  44. | :ref:`Transform3D<class_Transform3D>` | :ref:`get_to_cell_xform<class_VoxelGIData_method_get_to_cell_xform>` **(** **)** |const| |
  45. +-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  46. Property Descriptions
  47. ---------------------
  48. .. _class_VoxelGIData_property_bias:
  49. - :ref:`float<class_float>` **bias**
  50. +-----------+-----------------+
  51. | *Default* | ``1.5`` |
  52. +-----------+-----------------+
  53. | *Setter* | set_bias(value) |
  54. +-----------+-----------------+
  55. | *Getter* | get_bias() |
  56. +-----------+-----------------+
  57. ----
  58. .. _class_VoxelGIData_property_dynamic_range:
  59. - :ref:`float<class_float>` **dynamic_range**
  60. +-----------+--------------------------+
  61. | *Default* | ``4.0`` |
  62. +-----------+--------------------------+
  63. | *Setter* | set_dynamic_range(value) |
  64. +-----------+--------------------------+
  65. | *Getter* | get_dynamic_range() |
  66. +-----------+--------------------------+
  67. ----
  68. .. _class_VoxelGIData_property_energy:
  69. - :ref:`float<class_float>` **energy**
  70. +-----------+-------------------+
  71. | *Default* | ``1.0`` |
  72. +-----------+-------------------+
  73. | *Setter* | set_energy(value) |
  74. +-----------+-------------------+
  75. | *Getter* | get_energy() |
  76. +-----------+-------------------+
  77. ----
  78. .. _class_VoxelGIData_property_interior:
  79. - :ref:`bool<class_bool>` **interior**
  80. +-----------+---------------------+
  81. | *Default* | ``false`` |
  82. +-----------+---------------------+
  83. | *Setter* | set_interior(value) |
  84. +-----------+---------------------+
  85. | *Getter* | is_interior() |
  86. +-----------+---------------------+
  87. ----
  88. .. _class_VoxelGIData_property_normal_bias:
  89. - :ref:`float<class_float>` **normal_bias**
  90. +-----------+------------------------+
  91. | *Default* | ``0.0`` |
  92. +-----------+------------------------+
  93. | *Setter* | set_normal_bias(value) |
  94. +-----------+------------------------+
  95. | *Getter* | get_normal_bias() |
  96. +-----------+------------------------+
  97. ----
  98. .. _class_VoxelGIData_property_propagation:
  99. - :ref:`float<class_float>` **propagation**
  100. +-----------+------------------------+
  101. | *Default* | ``0.7`` |
  102. +-----------+------------------------+
  103. | *Setter* | set_propagation(value) |
  104. +-----------+------------------------+
  105. | *Getter* | get_propagation() |
  106. +-----------+------------------------+
  107. ----
  108. .. _class_VoxelGIData_property_use_two_bounces:
  109. - :ref:`bool<class_bool>` **use_two_bounces**
  110. +-----------+----------------------------+
  111. | *Default* | ``false`` |
  112. +-----------+----------------------------+
  113. | *Setter* | set_use_two_bounces(value) |
  114. +-----------+----------------------------+
  115. | *Getter* | is_using_two_bounces() |
  116. +-----------+----------------------------+
  117. Method Descriptions
  118. -------------------
  119. .. _class_VoxelGIData_method_allocate:
  120. - void **allocate** **(** :ref:`Transform3D<class_Transform3D>` 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 **)**
  121. ----
  122. .. _class_VoxelGIData_method_get_bounds:
  123. - :ref:`AABB<class_AABB>` **get_bounds** **(** **)** |const|
  124. ----
  125. .. _class_VoxelGIData_method_get_data_cells:
  126. - :ref:`PackedByteArray<class_PackedByteArray>` **get_data_cells** **(** **)** |const|
  127. ----
  128. .. _class_VoxelGIData_method_get_level_counts:
  129. - :ref:`PackedInt32Array<class_PackedInt32Array>` **get_level_counts** **(** **)** |const|
  130. ----
  131. .. _class_VoxelGIData_method_get_octree_cells:
  132. - :ref:`PackedByteArray<class_PackedByteArray>` **get_octree_cells** **(** **)** |const|
  133. ----
  134. .. _class_VoxelGIData_method_get_octree_size:
  135. - :ref:`Vector3<class_Vector3>` **get_octree_size** **(** **)** |const|
  136. ----
  137. .. _class_VoxelGIData_method_get_to_cell_xform:
  138. - :ref:`Transform3D<class_Transform3D>` **get_to_cell_xform** **(** **)** |const|
  139. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  140. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  141. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  142. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  143. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  144. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`