class_light.rst 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/Light.xml.
  6. .. _class_Light:
  7. Light
  8. =====
  9. **Inherits:** :ref:`VisualInstance<class_VisualInstance>` **<** :ref:`CullInstance<class_CullInstance>` **<** :ref:`Spatial<class_Spatial>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`DirectionalLight<class_DirectionalLight>`, :ref:`OmniLight<class_OmniLight>`, :ref:`SpotLight<class_SpotLight>`
  11. Provides a base class for different kinds of light nodes.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Light is the *abstract* base class for light nodes. As it can't be instanced, it shouldn't be used directly. Other types of light nodes inherit from it. Light contains the common variables and parameters used for lighting.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`3D lights and shadows <../tutorials/3d/lights_and_shadows>`
  20. - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
  21. .. rst-class:: classref-reftable-group
  22. Properties
  23. ----------
  24. .. table::
  25. :widths: auto
  26. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  27. | :ref:`bool<class_bool>` | :ref:`editor_only<class_Light_property_editor_only>` | ``false`` |
  28. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  29. | :ref:`BakeMode<enum_Light_BakeMode>` | :ref:`light_bake_mode<class_Light_property_light_bake_mode>` | ``1`` |
  30. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  31. | :ref:`Color<class_Color>` | :ref:`light_color<class_Light_property_light_color>` | ``Color( 1, 1, 1, 1 )`` |
  32. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  33. | :ref:`int<class_int>` | :ref:`light_cull_mask<class_Light_property_light_cull_mask>` | ``4294967295`` |
  34. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  35. | :ref:`float<class_float>` | :ref:`light_energy<class_Light_property_light_energy>` | ``1.0`` |
  36. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  37. | :ref:`float<class_float>` | :ref:`light_indirect_energy<class_Light_property_light_indirect_energy>` | ``1.0`` |
  38. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  39. | :ref:`bool<class_bool>` | :ref:`light_negative<class_Light_property_light_negative>` | ``false`` |
  40. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  41. | :ref:`float<class_float>` | :ref:`light_size<class_Light_property_light_size>` | ``0.0`` |
  42. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  43. | :ref:`float<class_float>` | :ref:`light_specular<class_Light_property_light_specular>` | ``0.5`` |
  44. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  45. | :ref:`float<class_float>` | :ref:`shadow_bias<class_Light_property_shadow_bias>` | ``0.15`` |
  46. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  47. | :ref:`Color<class_Color>` | :ref:`shadow_color<class_Light_property_shadow_color>` | ``Color( 0, 0, 0, 1 )`` |
  48. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  49. | :ref:`float<class_float>` | :ref:`shadow_contact<class_Light_property_shadow_contact>` | ``0.0`` |
  50. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  51. | :ref:`bool<class_bool>` | :ref:`shadow_enabled<class_Light_property_shadow_enabled>` | ``false`` |
  52. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  53. | :ref:`bool<class_bool>` | :ref:`shadow_reverse_cull_face<class_Light_property_shadow_reverse_cull_face>` | ``false`` |
  54. +--------------------------------------+--------------------------------------------------------------------------------+-------------------------+
  55. .. rst-class:: classref-reftable-group
  56. Methods
  57. -------
  58. .. table::
  59. :widths: auto
  60. +---------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`float<class_float>` | :ref:`get_param<class_Light_method_get_param>` **(** :ref:`Param<enum_Light_Param>` param **)** |const| |
  62. +---------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  63. | void | :ref:`set_param<class_Light_method_set_param>` **(** :ref:`Param<enum_Light_Param>` param, :ref:`float<class_float>` value **)** |
  64. +---------------------------+----------------------------------------------------------------------------------------------------------------------------------+
  65. .. rst-class:: classref-section-separator
  66. ----
  67. .. rst-class:: classref-descriptions-group
  68. Enumerations
  69. ------------
  70. .. _enum_Light_Param:
  71. .. rst-class:: classref-enumeration
  72. enum **Param**:
  73. .. _class_Light_constant_PARAM_ENERGY:
  74. .. rst-class:: classref-enumeration-constant
  75. :ref:`Param<enum_Light_Param>` **PARAM_ENERGY** = ``0``
  76. Constant for accessing :ref:`light_energy<class_Light_property_light_energy>`.
  77. .. _class_Light_constant_PARAM_INDIRECT_ENERGY:
  78. .. rst-class:: classref-enumeration-constant
  79. :ref:`Param<enum_Light_Param>` **PARAM_INDIRECT_ENERGY** = ``1``
  80. Constant for accessing :ref:`light_indirect_energy<class_Light_property_light_indirect_energy>`.
  81. .. _class_Light_constant_PARAM_SIZE:
  82. .. rst-class:: classref-enumeration-constant
  83. :ref:`Param<enum_Light_Param>` **PARAM_SIZE** = ``2``
  84. Constant for accessing :ref:`light_size<class_Light_property_light_size>`.
  85. .. _class_Light_constant_PARAM_SPECULAR:
  86. .. rst-class:: classref-enumeration-constant
  87. :ref:`Param<enum_Light_Param>` **PARAM_SPECULAR** = ``3``
  88. Constant for accessing :ref:`light_specular<class_Light_property_light_specular>`.
  89. .. _class_Light_constant_PARAM_RANGE:
  90. .. rst-class:: classref-enumeration-constant
  91. :ref:`Param<enum_Light_Param>` **PARAM_RANGE** = ``4``
  92. Constant for accessing :ref:`OmniLight.omni_range<class_OmniLight_property_omni_range>` or :ref:`SpotLight.spot_range<class_SpotLight_property_spot_range>`.
  93. .. _class_Light_constant_PARAM_ATTENUATION:
  94. .. rst-class:: classref-enumeration-constant
  95. :ref:`Param<enum_Light_Param>` **PARAM_ATTENUATION** = ``5``
  96. Constant for accessing :ref:`OmniLight.omni_attenuation<class_OmniLight_property_omni_attenuation>` or :ref:`SpotLight.spot_attenuation<class_SpotLight_property_spot_attenuation>`.
  97. .. _class_Light_constant_PARAM_SPOT_ANGLE:
  98. .. rst-class:: classref-enumeration-constant
  99. :ref:`Param<enum_Light_Param>` **PARAM_SPOT_ANGLE** = ``6``
  100. Constant for accessing :ref:`SpotLight.spot_angle<class_SpotLight_property_spot_angle>`.
  101. .. _class_Light_constant_PARAM_SPOT_ATTENUATION:
  102. .. rst-class:: classref-enumeration-constant
  103. :ref:`Param<enum_Light_Param>` **PARAM_SPOT_ATTENUATION** = ``7``
  104. Constant for accessing :ref:`SpotLight.spot_angle_attenuation<class_SpotLight_property_spot_angle_attenuation>`.
  105. .. _class_Light_constant_PARAM_CONTACT_SHADOW_SIZE:
  106. .. rst-class:: classref-enumeration-constant
  107. :ref:`Param<enum_Light_Param>` **PARAM_CONTACT_SHADOW_SIZE** = ``8``
  108. Constant for accessing :ref:`shadow_contact<class_Light_property_shadow_contact>`.
  109. .. _class_Light_constant_PARAM_SHADOW_MAX_DISTANCE:
  110. .. rst-class:: classref-enumeration-constant
  111. :ref:`Param<enum_Light_Param>` **PARAM_SHADOW_MAX_DISTANCE** = ``9``
  112. Constant for accessing :ref:`DirectionalLight.directional_shadow_max_distance<class_DirectionalLight_property_directional_shadow_max_distance>`.
  113. .. _class_Light_constant_PARAM_SHADOW_SPLIT_1_OFFSET:
  114. .. rst-class:: classref-enumeration-constant
  115. :ref:`Param<enum_Light_Param>` **PARAM_SHADOW_SPLIT_1_OFFSET** = ``10``
  116. Constant for accessing :ref:`DirectionalLight.directional_shadow_split_1<class_DirectionalLight_property_directional_shadow_split_1>`.
  117. .. _class_Light_constant_PARAM_SHADOW_SPLIT_2_OFFSET:
  118. .. rst-class:: classref-enumeration-constant
  119. :ref:`Param<enum_Light_Param>` **PARAM_SHADOW_SPLIT_2_OFFSET** = ``11``
  120. Constant for accessing :ref:`DirectionalLight.directional_shadow_split_2<class_DirectionalLight_property_directional_shadow_split_2>`.
  121. .. _class_Light_constant_PARAM_SHADOW_SPLIT_3_OFFSET:
  122. .. rst-class:: classref-enumeration-constant
  123. :ref:`Param<enum_Light_Param>` **PARAM_SHADOW_SPLIT_3_OFFSET** = ``12``
  124. Constant for accessing :ref:`DirectionalLight.directional_shadow_split_3<class_DirectionalLight_property_directional_shadow_split_3>`.
  125. .. _class_Light_constant_PARAM_SHADOW_NORMAL_BIAS:
  126. .. rst-class:: classref-enumeration-constant
  127. :ref:`Param<enum_Light_Param>` **PARAM_SHADOW_NORMAL_BIAS** = ``13``
  128. Constant for accessing :ref:`DirectionalLight.directional_shadow_normal_bias<class_DirectionalLight_property_directional_shadow_normal_bias>`.
  129. .. _class_Light_constant_PARAM_SHADOW_BIAS:
  130. .. rst-class:: classref-enumeration-constant
  131. :ref:`Param<enum_Light_Param>` **PARAM_SHADOW_BIAS** = ``14``
  132. Constant for accessing :ref:`shadow_bias<class_Light_property_shadow_bias>`.
  133. .. _class_Light_constant_PARAM_SHADOW_BIAS_SPLIT_SCALE:
  134. .. rst-class:: classref-enumeration-constant
  135. :ref:`Param<enum_Light_Param>` **PARAM_SHADOW_BIAS_SPLIT_SCALE** = ``15``
  136. Constant for accessing :ref:`DirectionalLight.directional_shadow_bias_split_scale<class_DirectionalLight_property_directional_shadow_bias_split_scale>`.
  137. .. _class_Light_constant_PARAM_SHADOW_FADE_START:
  138. .. rst-class:: classref-enumeration-constant
  139. :ref:`Param<enum_Light_Param>` **PARAM_SHADOW_FADE_START** = ``16``
  140. Constant for accessing :ref:`DirectionalLight.directional_shadow_fade_start<class_DirectionalLight_property_directional_shadow_fade_start>`.
  141. .. _class_Light_constant_PARAM_MAX:
  142. .. rst-class:: classref-enumeration-constant
  143. :ref:`Param<enum_Light_Param>` **PARAM_MAX** = ``17``
  144. Represents the size of the :ref:`Param<enum_Light_Param>` enum.
  145. .. rst-class:: classref-item-separator
  146. ----
  147. .. _enum_Light_BakeMode:
  148. .. rst-class:: classref-enumeration
  149. enum **BakeMode**:
  150. .. _class_Light_constant_BAKE_DISABLED:
  151. .. rst-class:: classref-enumeration-constant
  152. :ref:`BakeMode<enum_Light_BakeMode>` **BAKE_DISABLED** = ``0``
  153. Light is ignored when baking.
  154. \ **Note:** Hiding a light does *not* affect baking.
  155. .. _class_Light_constant_BAKE_INDIRECT:
  156. .. rst-class:: classref-enumeration-constant
  157. :ref:`BakeMode<enum_Light_BakeMode>` **BAKE_INDIRECT** = ``1``
  158. Only indirect lighting will be baked (default).
  159. .. _class_Light_constant_BAKE_ALL:
  160. .. rst-class:: classref-enumeration-constant
  161. :ref:`BakeMode<enum_Light_BakeMode>` **BAKE_ALL** = ``2``
  162. Both direct and indirect light will be baked.
  163. \ **Note:** You should hide the light if you don't want it to appear twice (dynamic and baked).
  164. .. rst-class:: classref-section-separator
  165. ----
  166. .. rst-class:: classref-descriptions-group
  167. Property Descriptions
  168. ---------------------
  169. .. _class_Light_property_editor_only:
  170. .. rst-class:: classref-property
  171. :ref:`bool<class_bool>` **editor_only** = ``false``
  172. .. rst-class:: classref-property-setget
  173. - void **set_editor_only** **(** :ref:`bool<class_bool>` value **)**
  174. - :ref:`bool<class_bool>` **is_editor_only** **(** **)**
  175. If ``true``, the light only appears in the editor and will not be visible at runtime.
  176. .. rst-class:: classref-item-separator
  177. ----
  178. .. _class_Light_property_light_bake_mode:
  179. .. rst-class:: classref-property
  180. :ref:`BakeMode<enum_Light_BakeMode>` **light_bake_mode** = ``1``
  181. .. rst-class:: classref-property-setget
  182. - void **set_bake_mode** **(** :ref:`BakeMode<enum_Light_BakeMode>` value **)**
  183. - :ref:`BakeMode<enum_Light_BakeMode>` **get_bake_mode** **(** **)**
  184. The light's bake mode. See :ref:`BakeMode<enum_Light_BakeMode>`.
  185. .. rst-class:: classref-item-separator
  186. ----
  187. .. _class_Light_property_light_color:
  188. .. rst-class:: classref-property
  189. :ref:`Color<class_Color>` **light_color** = ``Color( 1, 1, 1, 1 )``
  190. .. rst-class:: classref-property-setget
  191. - void **set_color** **(** :ref:`Color<class_Color>` value **)**
  192. - :ref:`Color<class_Color>` **get_color** **(** **)**
  193. The light's color. An *overbright* color can be used to achieve a result equivalent to increasing the light's :ref:`light_energy<class_Light_property_light_energy>`.
  194. .. rst-class:: classref-item-separator
  195. ----
  196. .. _class_Light_property_light_cull_mask:
  197. .. rst-class:: classref-property
  198. :ref:`int<class_int>` **light_cull_mask** = ``4294967295``
  199. .. rst-class:: classref-property-setget
  200. - void **set_cull_mask** **(** :ref:`int<class_int>` value **)**
  201. - :ref:`int<class_int>` **get_cull_mask** **(** **)**
  202. The light will affect objects in the selected layers.
  203. .. rst-class:: classref-item-separator
  204. ----
  205. .. _class_Light_property_light_energy:
  206. .. rst-class:: classref-property
  207. :ref:`float<class_float>` **light_energy** = ``1.0``
  208. .. rst-class:: classref-property-setget
  209. - void **set_param** **(** :ref:`Param<enum_Light_Param>` param, :ref:`float<class_float>` value **)**
  210. - :ref:`float<class_float>` **get_param** **(** :ref:`Param<enum_Light_Param>` param **)** |const|
  211. The light's strength multiplier (this is not a physical unit). For :ref:`OmniLight<class_OmniLight>` and :ref:`SpotLight<class_SpotLight>`, changing this value will only change the light color's intensity, not the light's radius.
  212. .. rst-class:: classref-item-separator
  213. ----
  214. .. _class_Light_property_light_indirect_energy:
  215. .. rst-class:: classref-property
  216. :ref:`float<class_float>` **light_indirect_energy** = ``1.0``
  217. .. rst-class:: classref-property-setget
  218. - void **set_param** **(** :ref:`Param<enum_Light_Param>` param, :ref:`float<class_float>` value **)**
  219. - :ref:`float<class_float>` **get_param** **(** :ref:`Param<enum_Light_Param>` param **)** |const|
  220. Secondary multiplier used with indirect light (light bounces). This works on both :ref:`BakedLightmap<class_BakedLightmap>` and :ref:`GIProbe<class_GIProbe>`.
  221. .. rst-class:: classref-item-separator
  222. ----
  223. .. _class_Light_property_light_negative:
  224. .. rst-class:: classref-property
  225. :ref:`bool<class_bool>` **light_negative** = ``false``
  226. .. rst-class:: classref-property-setget
  227. - void **set_negative** **(** :ref:`bool<class_bool>` value **)**
  228. - :ref:`bool<class_bool>` **is_negative** **(** **)**
  229. If ``true``, the light's effect is reversed, darkening areas and casting bright shadows.
  230. .. rst-class:: classref-item-separator
  231. ----
  232. .. _class_Light_property_light_size:
  233. .. rst-class:: classref-property
  234. :ref:`float<class_float>` **light_size** = ``0.0``
  235. .. rst-class:: classref-property-setget
  236. - void **set_param** **(** :ref:`Param<enum_Light_Param>` param, :ref:`float<class_float>` value **)**
  237. - :ref:`float<class_float>` **get_param** **(** :ref:`Param<enum_Light_Param>` param **)** |const|
  238. The size of the light in Godot units. Only considered in baked lightmaps and only if :ref:`light_bake_mode<class_Light_property_light_bake_mode>` is set to :ref:`BAKE_ALL<class_Light_constant_BAKE_ALL>`. Increasing this value will make the shadows appear blurrier. This can be used to simulate area lights to an extent.
  239. \ **Note:** :ref:`light_size<class_Light_property_light_size>` is not affected by :ref:`Spatial.scale<class_Spatial_property_scale>` (the light's scale or its parent's scale).
  240. .. rst-class:: classref-item-separator
  241. ----
  242. .. _class_Light_property_light_specular:
  243. .. rst-class:: classref-property
  244. :ref:`float<class_float>` **light_specular** = ``0.5``
  245. .. rst-class:: classref-property-setget
  246. - void **set_param** **(** :ref:`Param<enum_Light_Param>` param, :ref:`float<class_float>` value **)**
  247. - :ref:`float<class_float>` **get_param** **(** :ref:`Param<enum_Light_Param>` param **)** |const|
  248. The intensity of the specular blob in objects affected by the light. At ``0``, the light becomes a pure diffuse light. When not baking emission, this can be used to avoid unrealistic reflections when placing lights above an emissive surface.
  249. .. rst-class:: classref-item-separator
  250. ----
  251. .. _class_Light_property_shadow_bias:
  252. .. rst-class:: classref-property
  253. :ref:`float<class_float>` **shadow_bias** = ``0.15``
  254. .. rst-class:: classref-property-setget
  255. - void **set_param** **(** :ref:`Param<enum_Light_Param>` param, :ref:`float<class_float>` value **)**
  256. - :ref:`float<class_float>` **get_param** **(** :ref:`Param<enum_Light_Param>` param **)** |const|
  257. Used to adjust shadow appearance. Too small a value results in self-shadowing ("shadow acne"), while too large a value causes shadows to separate from casters ("peter-panning"). Adjust as needed.
  258. .. rst-class:: classref-item-separator
  259. ----
  260. .. _class_Light_property_shadow_color:
  261. .. rst-class:: classref-property
  262. :ref:`Color<class_Color>` **shadow_color** = ``Color( 0, 0, 0, 1 )``
  263. .. rst-class:: classref-property-setget
  264. - void **set_shadow_color** **(** :ref:`Color<class_Color>` value **)**
  265. - :ref:`Color<class_Color>` **get_shadow_color** **(** **)**
  266. The color of shadows cast by this light.
  267. .. rst-class:: classref-item-separator
  268. ----
  269. .. _class_Light_property_shadow_contact:
  270. .. rst-class:: classref-property
  271. :ref:`float<class_float>` **shadow_contact** = ``0.0``
  272. .. rst-class:: classref-property-setget
  273. - void **set_param** **(** :ref:`Param<enum_Light_Param>` param, :ref:`float<class_float>` value **)**
  274. - :ref:`float<class_float>` **get_param** **(** :ref:`Param<enum_Light_Param>` param **)** |const|
  275. Attempts to reduce :ref:`shadow_bias<class_Light_property_shadow_bias>` gap by rendering screen-space contact shadows. This has a performance impact, especially at higher values.
  276. \ **Note:** Contact shadows can look broken, so leaving this property to ``0.0`` is recommended.
  277. .. rst-class:: classref-item-separator
  278. ----
  279. .. _class_Light_property_shadow_enabled:
  280. .. rst-class:: classref-property
  281. :ref:`bool<class_bool>` **shadow_enabled** = ``false``
  282. .. rst-class:: classref-property-setget
  283. - void **set_shadow** **(** :ref:`bool<class_bool>` value **)**
  284. - :ref:`bool<class_bool>` **has_shadow** **(** **)**
  285. If ``true``, the light will cast shadows.
  286. .. rst-class:: classref-item-separator
  287. ----
  288. .. _class_Light_property_shadow_reverse_cull_face:
  289. .. rst-class:: classref-property
  290. :ref:`bool<class_bool>` **shadow_reverse_cull_face** = ``false``
  291. .. rst-class:: classref-property-setget
  292. - void **set_shadow_reverse_cull_face** **(** :ref:`bool<class_bool>` value **)**
  293. - :ref:`bool<class_bool>` **get_shadow_reverse_cull_face** **(** **)**
  294. If ``true``, reverses the backface culling of the mesh. This can be useful when you have a flat mesh that has a light behind it. If you need to cast a shadow on both sides of the mesh, set the mesh to use double-sided shadows with :ref:`GeometryInstance.SHADOW_CASTING_SETTING_DOUBLE_SIDED<class_GeometryInstance_constant_SHADOW_CASTING_SETTING_DOUBLE_SIDED>`.
  295. .. rst-class:: classref-section-separator
  296. ----
  297. .. rst-class:: classref-descriptions-group
  298. Method Descriptions
  299. -------------------
  300. .. _class_Light_method_get_param:
  301. .. rst-class:: classref-method
  302. :ref:`float<class_float>` **get_param** **(** :ref:`Param<enum_Light_Param>` param **)** |const|
  303. Returns the value of the specified :ref:`Param<enum_Light_Param>` parameter.
  304. .. rst-class:: classref-item-separator
  305. ----
  306. .. _class_Light_method_set_param:
  307. .. rst-class:: classref-method
  308. void **set_param** **(** :ref:`Param<enum_Light_Param>` param, :ref:`float<class_float>` value **)**
  309. Sets the value of the specified :ref:`Param<enum_Light_Param>` parameter.
  310. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  311. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  312. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  313. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`