class_particlesmaterial.rst 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ParticlesMaterial.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ParticlesMaterial:
  5. ParticlesMaterial
  6. =================
  7. **Inherits:** :ref:`Material<class_material>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Particle properties for :ref:`Particles<class_particles>` and :ref:`Particles2D<class_particles2d>` nodes.
  12. Member Functions
  13. ----------------
  14. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`Color<class_color>` | :ref:`get_color<class_ParticlesMaterial_get_color>` **(** **)** const |
  16. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`Texture<class_texture>` | :ref:`get_color_ramp<class_ParticlesMaterial_get_color_ramp>` **(** **)** const |
  18. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`Vector3<class_vector3>` | :ref:`get_emission_box_extents<class_ParticlesMaterial_get_emission_box_extents>` **(** **)** const |
  20. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`Texture<class_texture>` | :ref:`get_emission_color_texture<class_ParticlesMaterial_get_emission_color_texture>` **(** **)** const |
  22. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Texture<class_texture>` | :ref:`get_emission_normal_texture<class_ParticlesMaterial_get_emission_normal_texture>` **(** **)** const |
  24. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`int<class_int>` | :ref:`get_emission_point_count<class_ParticlesMaterial_get_emission_point_count>` **(** **)** const |
  26. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`Texture<class_texture>` | :ref:`get_emission_point_texture<class_ParticlesMaterial_get_emission_point_texture>` **(** **)** const |
  28. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`int<class_int>` | :ref:`get_emission_shape<class_ParticlesMaterial_get_emission_shape>` **(** **)** const |
  30. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`float<class_float>` | :ref:`get_emission_sphere_radius<class_ParticlesMaterial_get_emission_sphere_radius>` **(** **)** const |
  32. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`bool<class_bool>` | :ref:`get_flag<class_ParticlesMaterial_get_flag>` **(** :ref:`int<class_int>` flag **)** const |
  34. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`float<class_float>` | :ref:`get_flatness<class_ParticlesMaterial_get_flatness>` **(** **)** const |
  36. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`Vector3<class_vector3>` | :ref:`get_gravity<class_ParticlesMaterial_get_gravity>` **(** **)** const |
  38. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`float<class_float>` | :ref:`get_param<class_ParticlesMaterial_get_param>` **(** :ref:`int<class_int>` param **)** const |
  40. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`float<class_float>` | :ref:`get_param_randomness<class_ParticlesMaterial_get_param_randomness>` **(** :ref:`int<class_int>` param **)** const |
  42. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`Texture<class_texture>` | :ref:`get_param_texture<class_ParticlesMaterial_get_param_texture>` **(** :ref:`int<class_int>` param **)** const |
  44. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`float<class_float>` | :ref:`get_spread<class_ParticlesMaterial_get_spread>` **(** **)** const |
  46. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`GradientTexture<class_gradienttexture>` | :ref:`get_trail_color_modifier<class_ParticlesMaterial_get_trail_color_modifier>` **(** **)** const |
  48. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`int<class_int>` | :ref:`get_trail_divisor<class_ParticlesMaterial_get_trail_divisor>` **(** **)** const |
  50. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`CurveTexture<class_curvetexture>` | :ref:`get_trail_size_modifier<class_ParticlesMaterial_get_trail_size_modifier>` **(** **)** const |
  52. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | void | :ref:`set_color<class_ParticlesMaterial_set_color>` **(** :ref:`Color<class_color>` color **)** |
  54. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | void | :ref:`set_color_ramp<class_ParticlesMaterial_set_color_ramp>` **(** :ref:`Texture<class_texture>` ramp **)** |
  56. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | void | :ref:`set_emission_box_extents<class_ParticlesMaterial_set_emission_box_extents>` **(** :ref:`Vector3<class_vector3>` extents **)** |
  58. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | void | :ref:`set_emission_color_texture<class_ParticlesMaterial_set_emission_color_texture>` **(** :ref:`Texture<class_texture>` texture **)** |
  60. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | void | :ref:`set_emission_normal_texture<class_ParticlesMaterial_set_emission_normal_texture>` **(** :ref:`Texture<class_texture>` texture **)** |
  62. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | void | :ref:`set_emission_point_count<class_ParticlesMaterial_set_emission_point_count>` **(** :ref:`int<class_int>` point_count **)** |
  64. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | void | :ref:`set_emission_point_texture<class_ParticlesMaterial_set_emission_point_texture>` **(** :ref:`Texture<class_texture>` texture **)** |
  66. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | void | :ref:`set_emission_shape<class_ParticlesMaterial_set_emission_shape>` **(** :ref:`int<class_int>` shape **)** |
  68. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | void | :ref:`set_emission_sphere_radius<class_ParticlesMaterial_set_emission_sphere_radius>` **(** :ref:`float<class_float>` radius **)** |
  70. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | void | :ref:`set_flag<class_ParticlesMaterial_set_flag>` **(** :ref:`int<class_int>` flag, :ref:`bool<class_bool>` enable **)** |
  72. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | void | :ref:`set_flatness<class_ParticlesMaterial_set_flatness>` **(** :ref:`float<class_float>` amount **)** |
  74. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | void | :ref:`set_gravity<class_ParticlesMaterial_set_gravity>` **(** :ref:`Vector3<class_vector3>` accel_vec **)** |
  76. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | void | :ref:`set_param<class_ParticlesMaterial_set_param>` **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)** |
  78. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | void | :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>` **(** :ref:`int<class_int>` param, :ref:`float<class_float>` randomness **)** |
  80. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | void | :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` **(** :ref:`int<class_int>` param, :ref:`Texture<class_texture>` texture **)** |
  82. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | void | :ref:`set_spread<class_ParticlesMaterial_set_spread>` **(** :ref:`float<class_float>` degrees **)** |
  84. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | void | :ref:`set_trail_color_modifier<class_ParticlesMaterial_set_trail_color_modifier>` **(** :ref:`GradientTexture<class_gradienttexture>` texture **)** |
  86. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | void | :ref:`set_trail_divisor<class_ParticlesMaterial_set_trail_divisor>` **(** :ref:`int<class_int>` divisor **)** |
  88. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | void | :ref:`set_trail_size_modifier<class_ParticlesMaterial_set_trail_size_modifier>` **(** :ref:`CurveTexture<class_curvetexture>` texture **)** |
  90. +------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. Member Variables
  92. ----------------
  93. - :ref:`float<class_float>` **angle** - Initial rotation applied to each particle.
  94. - :ref:`Texture<class_texture>` **angle_curve** - Each particle's rotation will be animated along this [CurveTexture].
  95. - :ref:`float<class_float>` **angle_random** - Rotation randomness ratio. Default value: [code]0[/code].
  96. - :ref:`float<class_float>` **angular_velocity** - Initial angular velocity applied to each particle.
  97. - :ref:`Texture<class_texture>` **angular_velocity_curve** - Each particle's angular velocity will vary along this [CurveTexture].
  98. - :ref:`float<class_float>` **angular_velocity_random** - Angular velocity randomness ratio. Default value: [code]0[/code].
  99. - :ref:`bool<class_bool>` **anim_loop** - If [code]true[/code] animation will loop. Default value: [code]false[/code].
  100. - :ref:`float<class_float>` **anim_offset** - Particle animation offset.
  101. - :ref:`Texture<class_texture>` **anim_offset_curve** - Each particle's animation offset will vary along this [CurveTexture].
  102. - :ref:`float<class_float>` **anim_offset_random** - Animation offset randomness ratio. Default value: [code]0[/code].
  103. - :ref:`float<class_float>` **anim_speed** - Particle animation speed.
  104. - :ref:`Texture<class_texture>` **anim_speed_curve** - Each particle's animation speed will vary along this [CurveTexture].
  105. - :ref:`float<class_float>` **anim_speed_random** - Animation speed randomness ratio. Default value: [code]0[/code].
  106. - :ref:`Color<class_color>` **color** - Each particle's initial color. If the [Particle2D]'s [code]texture[/code] is defined, it will be multiplied by this color.
  107. - :ref:`Texture<class_texture>` **color_ramp** - Each particle's color will vary along this [GradientTexture].
  108. - :ref:`float<class_float>` **damping** - The rate at which particles lose velocity.
  109. - :ref:`Texture<class_texture>` **damping_curve** - Damping will vary along this [CurveTexture].
  110. - :ref:`float<class_float>` **damping_random** - Damping randomness ratio. Default value: [code]0[/code].
  111. - :ref:`Vector3<class_vector3>` **emission_box_extents** - The box's extents if [code]emission_shape[/code] is set to [code]EMISSION_SHAPE_BOX[/code].
  112. - :ref:`Texture<class_texture>` **emission_color_texture**
  113. - :ref:`Texture<class_texture>` **emission_normal_texture**
  114. - :ref:`int<class_int>` **emission_point_count** - The number of emission points if [code]emission_shape[/code] is set to [code]EMISSION_SHAPE_POINTS[/code] or [code]EMISSION_SHAPE_DIRECTED_POINTS[/code].
  115. - :ref:`Texture<class_texture>` **emission_point_texture**
  116. - :ref:`int<class_int>` **emission_shape** - Particles will be emitted inside this region. Use [code]EMISSION_SHAPE_*[/code] constants for values. Default value: [code]EMISSION_SHAPE_POINT[/code].
  117. - :ref:`float<class_float>` **emission_sphere_radius** - The sphere's radius if [code]emission_shape[/code] is set to [code]EMISSION_SHAPE_SPHERE[/code].
  118. - :ref:`bool<class_bool>` **flag_align_y**
  119. - :ref:`bool<class_bool>` **flag_disable_z** - If [code]true[/code] particles will not move on the z axis. Default value: [code]true[/code] for [Particles2D], [code]false[/code] for [Particles].
  120. - :ref:`bool<class_bool>` **flag_rotate_y**
  121. - :ref:`float<class_float>` **flatness**
  122. - :ref:`Vector3<class_vector3>` **gravity** - Gravity applied to every particle. Default value: [code](0, 98, 0)[/code].
  123. - :ref:`float<class_float>` **hue_variation** - Initial hue variation applied to each particle.
  124. - :ref:`Texture<class_texture>` **hue_variation_curve** - Each particle's hue will vary along this [CurveTexture].
  125. - :ref:`float<class_float>` **hue_variation_random** - Hue variation randomness ratio. Default value: [code]0[/code].
  126. - :ref:`float<class_float>` **initial_velocity** - Initial velocity for each particle.
  127. - :ref:`float<class_float>` **initial_velocity_random** - Initial velocity randomness ratio. Default value: [code]0[/code].
  128. - :ref:`float<class_float>` **linear_accel** - Linear acceleration applied to each particle.
  129. - :ref:`Texture<class_texture>` **linear_accel_curve** - Each particle's linear acceleration will vary along this [CurveTexture].
  130. - :ref:`float<class_float>` **linear_accel_random** - Linear acceleration randomness ratio. Default value: [code]0[/code].
  131. - :ref:`float<class_float>` **orbit_velocity** - Orbital velocity applied to each particle.
  132. - :ref:`Texture<class_texture>` **orbit_velocity_curve** - Each particle's orbital velocity will vary along this [CurveTexture].
  133. - :ref:`float<class_float>` **orbit_velocity_random** - Orbital velocity randomness ratio. Default value: [code]0[/code].
  134. - :ref:`float<class_float>` **radial_accel** - Linear acceleration applied to each particle.
  135. - :ref:`Texture<class_texture>` **radial_accel_curve** - Each particle's radial acceleration will vary along this [CurveTexture].
  136. - :ref:`float<class_float>` **radial_accel_random** - Radial acceleration randomness ratio. Default value: [code]0[/code].
  137. - :ref:`float<class_float>` **scale** - Initial scale applied to each particle.
  138. - :ref:`Texture<class_texture>` **scale_curve** - Each particle's scale will vary along this [CurveTexture].
  139. - :ref:`float<class_float>` **scale_random** - Scale randomness ratio. Default value: [code]0[/code].
  140. - :ref:`float<class_float>` **spread** - Each particle's initial direction range from [code]+spread[/code] to [code]-spread[/code] degrees. Default value: [code]45[/code].
  141. - :ref:`float<class_float>` **tangential_accel** - Tangential acceleration applied to each particle. Tangential acceleration is perpendicular to the particle's velocity.
  142. - :ref:`Texture<class_texture>` **tangential_accel_curve** - Each particle's tangential acceleration will vary along this [CurveTexture].
  143. - :ref:`float<class_float>` **tangential_accel_random** - Tangential acceleration randomness ratio. Default value: [code]0[/code].
  144. - :ref:`GradientTexture<class_gradienttexture>` **trail_color_modifier** - Trail particles' color will vary along this [GradientTexture].
  145. - :ref:`int<class_int>` **trail_divisor** - Emitter will emit [code]amount[/code] divided by [code]trail_divisor[/code] particles. The remaining particles will be used as trail(s).
  146. - :ref:`CurveTexture<class_curvetexture>` **trail_size_modifier** - Trail particles' size will vary along this [CurveTexture].
  147. Numeric Constants
  148. -----------------
  149. - **PARAM_INITIAL_LINEAR_VELOCITY** = **0** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set initial velocity properties.
  150. - **PARAM_ANGULAR_VELOCITY** = **1** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set angular velocity properties.
  151. - **PARAM_ORBIT_VELOCITY** = **2** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set orbital_velocity properties.
  152. - **PARAM_LINEAR_ACCEL** = **3** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set linear acceleration properties.
  153. - **PARAM_RADIAL_ACCEL** = **4** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set radial acceleration properties.
  154. - **PARAM_TANGENTIAL_ACCEL** = **5** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set tangential acceleration properties.
  155. - **PARAM_DAMPING** = **6** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set damping properties.
  156. - **PARAM_ANGLE** = **7** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set angle properties.
  157. - **PARAM_SCALE** = **8** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set scale properties.
  158. - **PARAM_HUE_VARIATION** = **9** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set hue_variation properties.
  159. - **PARAM_ANIM_SPEED** = **10** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set animation speed properties.
  160. - **PARAM_ANIM_OFFSET** = **11** --- Use with :ref:`set_param<class_ParticlesMaterial_set_param>`, :ref:`set_param_randomness<class_ParticlesMaterial_set_param_randomness>`, and :ref:`set_param_texture<class_ParticlesMaterial_set_param_texture>` to set animation offset properties.
  161. - **PARAM_MAX** = **12**
  162. - **FLAG_ALIGN_Y_TO_VELOCITY** = **0** --- Use with :ref:`set_flag<class_ParticlesMaterial_set_flag>` to set member flag_align_y.
  163. - **FLAG_ROTATE_Y** = **1** --- Use with :ref:`set_flag<class_ParticlesMaterial_set_flag>` to set member flag_rotate_y
  164. - **FLAG_MAX** = **4**
  165. - **EMISSION_SHAPE_POINT** = **0** --- All particles will be emitted from a single point.
  166. - **EMISSION_SHAPE_SPHERE** = **1** --- Particles will be emitted in the volume of a sphere.
  167. - **EMISSION_SHAPE_BOX** = **2** --- Particles will be emitted in the volume of a box.
  168. - **EMISSION_SHAPE_POINTS** = **3**
  169. - **EMISSION_SHAPE_DIRECTED_POINTS** = **4**
  170. Description
  171. -----------
  172. ParticlesMaterial defines particle properties and behavior. It is used in the ``process_material`` of :ref:`Particles<class_particles>` and :ref:`Particles2D<class_particles2d>` emitter nodes.
  173. Some of this material's properties are applied to each particle when emitted, while others can have a :ref:`CurveTexture<class_curvetexture>` applied to vary values over the lifetime of the particle.
  174. Member Function Description
  175. ---------------------------
  176. .. _class_ParticlesMaterial_get_color:
  177. - :ref:`Color<class_color>` **get_color** **(** **)** const
  178. .. _class_ParticlesMaterial_get_color_ramp:
  179. - :ref:`Texture<class_texture>` **get_color_ramp** **(** **)** const
  180. .. _class_ParticlesMaterial_get_emission_box_extents:
  181. - :ref:`Vector3<class_vector3>` **get_emission_box_extents** **(** **)** const
  182. .. _class_ParticlesMaterial_get_emission_color_texture:
  183. - :ref:`Texture<class_texture>` **get_emission_color_texture** **(** **)** const
  184. .. _class_ParticlesMaterial_get_emission_normal_texture:
  185. - :ref:`Texture<class_texture>` **get_emission_normal_texture** **(** **)** const
  186. .. _class_ParticlesMaterial_get_emission_point_count:
  187. - :ref:`int<class_int>` **get_emission_point_count** **(** **)** const
  188. .. _class_ParticlesMaterial_get_emission_point_texture:
  189. - :ref:`Texture<class_texture>` **get_emission_point_texture** **(** **)** const
  190. .. _class_ParticlesMaterial_get_emission_shape:
  191. - :ref:`int<class_int>` **get_emission_shape** **(** **)** const
  192. .. _class_ParticlesMaterial_get_emission_sphere_radius:
  193. - :ref:`float<class_float>` **get_emission_sphere_radius** **(** **)** const
  194. .. _class_ParticlesMaterial_get_flag:
  195. - :ref:`bool<class_bool>` **get_flag** **(** :ref:`int<class_int>` flag **)** const
  196. .. _class_ParticlesMaterial_get_flatness:
  197. - :ref:`float<class_float>` **get_flatness** **(** **)** const
  198. .. _class_ParticlesMaterial_get_gravity:
  199. - :ref:`Vector3<class_vector3>` **get_gravity** **(** **)** const
  200. .. _class_ParticlesMaterial_get_param:
  201. - :ref:`float<class_float>` **get_param** **(** :ref:`int<class_int>` param **)** const
  202. .. _class_ParticlesMaterial_get_param_randomness:
  203. - :ref:`float<class_float>` **get_param_randomness** **(** :ref:`int<class_int>` param **)** const
  204. .. _class_ParticlesMaterial_get_param_texture:
  205. - :ref:`Texture<class_texture>` **get_param_texture** **(** :ref:`int<class_int>` param **)** const
  206. .. _class_ParticlesMaterial_get_spread:
  207. - :ref:`float<class_float>` **get_spread** **(** **)** const
  208. .. _class_ParticlesMaterial_get_trail_color_modifier:
  209. - :ref:`GradientTexture<class_gradienttexture>` **get_trail_color_modifier** **(** **)** const
  210. .. _class_ParticlesMaterial_get_trail_divisor:
  211. - :ref:`int<class_int>` **get_trail_divisor** **(** **)** const
  212. .. _class_ParticlesMaterial_get_trail_size_modifier:
  213. - :ref:`CurveTexture<class_curvetexture>` **get_trail_size_modifier** **(** **)** const
  214. .. _class_ParticlesMaterial_set_color:
  215. - void **set_color** **(** :ref:`Color<class_color>` color **)**
  216. .. _class_ParticlesMaterial_set_color_ramp:
  217. - void **set_color_ramp** **(** :ref:`Texture<class_texture>` ramp **)**
  218. .. _class_ParticlesMaterial_set_emission_box_extents:
  219. - void **set_emission_box_extents** **(** :ref:`Vector3<class_vector3>` extents **)**
  220. .. _class_ParticlesMaterial_set_emission_color_texture:
  221. - void **set_emission_color_texture** **(** :ref:`Texture<class_texture>` texture **)**
  222. .. _class_ParticlesMaterial_set_emission_normal_texture:
  223. - void **set_emission_normal_texture** **(** :ref:`Texture<class_texture>` texture **)**
  224. .. _class_ParticlesMaterial_set_emission_point_count:
  225. - void **set_emission_point_count** **(** :ref:`int<class_int>` point_count **)**
  226. .. _class_ParticlesMaterial_set_emission_point_texture:
  227. - void **set_emission_point_texture** **(** :ref:`Texture<class_texture>` texture **)**
  228. .. _class_ParticlesMaterial_set_emission_shape:
  229. - void **set_emission_shape** **(** :ref:`int<class_int>` shape **)**
  230. .. _class_ParticlesMaterial_set_emission_sphere_radius:
  231. - void **set_emission_sphere_radius** **(** :ref:`float<class_float>` radius **)**
  232. .. _class_ParticlesMaterial_set_flag:
  233. - void **set_flag** **(** :ref:`int<class_int>` flag, :ref:`bool<class_bool>` enable **)**
  234. .. _class_ParticlesMaterial_set_flatness:
  235. - void **set_flatness** **(** :ref:`float<class_float>` amount **)**
  236. .. _class_ParticlesMaterial_set_gravity:
  237. - void **set_gravity** **(** :ref:`Vector3<class_vector3>` accel_vec **)**
  238. .. _class_ParticlesMaterial_set_param:
  239. - void **set_param** **(** :ref:`int<class_int>` param, :ref:`float<class_float>` value **)**
  240. .. _class_ParticlesMaterial_set_param_randomness:
  241. - void **set_param_randomness** **(** :ref:`int<class_int>` param, :ref:`float<class_float>` randomness **)**
  242. .. _class_ParticlesMaterial_set_param_texture:
  243. - void **set_param_texture** **(** :ref:`int<class_int>` param, :ref:`Texture<class_texture>` texture **)**
  244. .. _class_ParticlesMaterial_set_spread:
  245. - void **set_spread** **(** :ref:`float<class_float>` degrees **)**
  246. .. _class_ParticlesMaterial_set_trail_color_modifier:
  247. - void **set_trail_color_modifier** **(** :ref:`GradientTexture<class_gradienttexture>` texture **)**
  248. .. _class_ParticlesMaterial_set_trail_divisor:
  249. - void **set_trail_divisor** **(** :ref:`int<class_int>` divisor **)**
  250. .. _class_ParticlesMaterial_set_trail_size_modifier:
  251. - void **set_trail_size_modifier** **(** :ref:`CurveTexture<class_curvetexture>` texture **)**