class_environment.rst 77 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the Environment.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_Environment:
  5. Environment
  6. ===========
  7. **Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Resource for environment nodes (like :ref:`WorldEnvironment<class_worldenvironment>`) that define multiple rendering options.
  12. Member Functions
  13. ----------------
  14. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`float<class_float>` | :ref:`get_adjustment_brightness<class_Environment_get_adjustment_brightness>` **(** **)** const |
  16. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`Texture<class_texture>` | :ref:`get_adjustment_color_correction<class_Environment_get_adjustment_color_correction>` **(** **)** const |
  18. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`float<class_float>` | :ref:`get_adjustment_contrast<class_Environment_get_adjustment_contrast>` **(** **)** const |
  20. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`float<class_float>` | :ref:`get_adjustment_saturation<class_Environment_get_adjustment_saturation>` **(** **)** const |
  22. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`Color<class_color>` | :ref:`get_ambient_light_color<class_Environment_get_ambient_light_color>` **(** **)** const |
  24. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`float<class_float>` | :ref:`get_ambient_light_energy<class_Environment_get_ambient_light_energy>` **(** **)** const |
  26. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`float<class_float>` | :ref:`get_ambient_light_sky_contribution<class_Environment_get_ambient_light_sky_contribution>` **(** **)** const |
  28. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`int<class_int>` | :ref:`get_background<class_Environment_get_background>` **(** **)** const |
  30. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`Color<class_color>` | :ref:`get_bg_color<class_Environment_get_bg_color>` **(** **)** const |
  32. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`float<class_float>` | :ref:`get_bg_energy<class_Environment_get_bg_energy>` **(** **)** const |
  34. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`int<class_int>` | :ref:`get_canvas_max_layer<class_Environment_get_canvas_max_layer>` **(** **)** const |
  36. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`float<class_float>` | :ref:`get_dof_blur_far_amount<class_Environment_get_dof_blur_far_amount>` **(** **)** const |
  38. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`float<class_float>` | :ref:`get_dof_blur_far_distance<class_Environment_get_dof_blur_far_distance>` **(** **)** const |
  40. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`int<class_int>` | :ref:`get_dof_blur_far_quality<class_Environment_get_dof_blur_far_quality>` **(** **)** const |
  42. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | :ref:`float<class_float>` | :ref:`get_dof_blur_far_transition<class_Environment_get_dof_blur_far_transition>` **(** **)** const |
  44. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | :ref:`float<class_float>` | :ref:`get_dof_blur_near_amount<class_Environment_get_dof_blur_near_amount>` **(** **)** const |
  46. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`float<class_float>` | :ref:`get_dof_blur_near_distance<class_Environment_get_dof_blur_near_distance>` **(** **)** const |
  48. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`int<class_int>` | :ref:`get_dof_blur_near_quality<class_Environment_get_dof_blur_near_quality>` **(** **)** const |
  50. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`float<class_float>` | :ref:`get_dof_blur_near_transition<class_Environment_get_dof_blur_near_transition>` **(** **)** const |
  52. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`Color<class_color>` | :ref:`get_fog_color<class_Environment_get_fog_color>` **(** **)** const |
  54. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`float<class_float>` | :ref:`get_fog_depth_begin<class_Environment_get_fog_depth_begin>` **(** **)** const |
  56. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`float<class_float>` | :ref:`get_fog_depth_curve<class_Environment_get_fog_depth_curve>` **(** **)** const |
  58. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`float<class_float>` | :ref:`get_fog_height_curve<class_Environment_get_fog_height_curve>` **(** **)** const |
  60. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`float<class_float>` | :ref:`get_fog_height_max<class_Environment_get_fog_height_max>` **(** **)** const |
  62. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`float<class_float>` | :ref:`get_fog_height_min<class_Environment_get_fog_height_min>` **(** **)** const |
  64. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`float<class_float>` | :ref:`get_fog_sun_amount<class_Environment_get_fog_sun_amount>` **(** **)** const |
  66. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`Color<class_color>` | :ref:`get_fog_sun_color<class_Environment_get_fog_sun_color>` **(** **)** const |
  68. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | :ref:`float<class_float>` | :ref:`get_fog_transmit_curve<class_Environment_get_fog_transmit_curve>` **(** **)** const |
  70. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | :ref:`int<class_int>` | :ref:`get_glow_blend_mode<class_Environment_get_glow_blend_mode>` **(** **)** const |
  72. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | :ref:`float<class_float>` | :ref:`get_glow_bloom<class_Environment_get_glow_bloom>` **(** **)** const |
  74. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | :ref:`float<class_float>` | :ref:`get_glow_hdr_bleed_scale<class_Environment_get_glow_hdr_bleed_scale>` **(** **)** const |
  76. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | :ref:`float<class_float>` | :ref:`get_glow_hdr_bleed_threshold<class_Environment_get_glow_hdr_bleed_threshold>` **(** **)** const |
  78. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | :ref:`float<class_float>` | :ref:`get_glow_intensity<class_Environment_get_glow_intensity>` **(** **)** const |
  80. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | :ref:`float<class_float>` | :ref:`get_glow_strength<class_Environment_get_glow_strength>` **(** **)** const |
  82. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | :ref:`Sky<class_sky>` | :ref:`get_sky<class_Environment_get_sky>` **(** **)** const |
  84. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | :ref:`float<class_float>` | :ref:`get_sky_custom_fov<class_Environment_get_sky_custom_fov>` **(** **)** const |
  86. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | :ref:`float<class_float>` | :ref:`get_ssao_bias<class_Environment_get_ssao_bias>` **(** **)** const |
  88. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | :ref:`Color<class_color>` | :ref:`get_ssao_color<class_Environment_get_ssao_color>` **(** **)** const |
  90. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. | :ref:`float<class_float>` | :ref:`get_ssao_direct_light_affect<class_Environment_get_ssao_direct_light_affect>` **(** **)** const |
  92. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  93. | :ref:`float<class_float>` | :ref:`get_ssao_intensity<class_Environment_get_ssao_intensity>` **(** **)** const |
  94. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  95. | :ref:`float<class_float>` | :ref:`get_ssao_intensity2<class_Environment_get_ssao_intensity2>` **(** **)** const |
  96. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  97. | :ref:`float<class_float>` | :ref:`get_ssao_radius<class_Environment_get_ssao_radius>` **(** **)** const |
  98. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  99. | :ref:`float<class_float>` | :ref:`get_ssao_radius2<class_Environment_get_ssao_radius2>` **(** **)** const |
  100. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  101. | :ref:`float<class_float>` | :ref:`get_ssr_depth_tolerance<class_Environment_get_ssr_depth_tolerance>` **(** **)** const |
  102. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  103. | :ref:`float<class_float>` | :ref:`get_ssr_fade_in<class_Environment_get_ssr_fade_in>` **(** **)** const |
  104. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  105. | :ref:`float<class_float>` | :ref:`get_ssr_fade_out<class_Environment_get_ssr_fade_out>` **(** **)** const |
  106. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  107. | :ref:`int<class_int>` | :ref:`get_ssr_max_steps<class_Environment_get_ssr_max_steps>` **(** **)** const |
  108. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  109. | :ref:`bool<class_bool>` | :ref:`get_tonemap_auto_exposure<class_Environment_get_tonemap_auto_exposure>` **(** **)** const |
  110. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  111. | :ref:`float<class_float>` | :ref:`get_tonemap_auto_exposure_grey<class_Environment_get_tonemap_auto_exposure_grey>` **(** **)** const |
  112. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  113. | :ref:`float<class_float>` | :ref:`get_tonemap_auto_exposure_max<class_Environment_get_tonemap_auto_exposure_max>` **(** **)** const |
  114. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  115. | :ref:`float<class_float>` | :ref:`get_tonemap_auto_exposure_min<class_Environment_get_tonemap_auto_exposure_min>` **(** **)** const |
  116. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  117. | :ref:`float<class_float>` | :ref:`get_tonemap_auto_exposure_speed<class_Environment_get_tonemap_auto_exposure_speed>` **(** **)** const |
  118. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  119. | :ref:`float<class_float>` | :ref:`get_tonemap_exposure<class_Environment_get_tonemap_exposure>` **(** **)** const |
  120. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  121. | :ref:`float<class_float>` | :ref:`get_tonemap_white<class_Environment_get_tonemap_white>` **(** **)** const |
  122. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  123. | :ref:`int<class_int>` | :ref:`get_tonemapper<class_Environment_get_tonemapper>` **(** **)** const |
  124. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  125. | :ref:`bool<class_bool>` | :ref:`is_adjustment_enabled<class_Environment_is_adjustment_enabled>` **(** **)** const |
  126. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  127. | :ref:`bool<class_bool>` | :ref:`is_dof_blur_far_enabled<class_Environment_is_dof_blur_far_enabled>` **(** **)** const |
  128. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  129. | :ref:`bool<class_bool>` | :ref:`is_dof_blur_near_enabled<class_Environment_is_dof_blur_near_enabled>` **(** **)** const |
  130. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  131. | :ref:`bool<class_bool>` | :ref:`is_fog_depth_enabled<class_Environment_is_fog_depth_enabled>` **(** **)** const |
  132. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  133. | :ref:`bool<class_bool>` | :ref:`is_fog_enabled<class_Environment_is_fog_enabled>` **(** **)** const |
  134. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  135. | :ref:`bool<class_bool>` | :ref:`is_fog_height_enabled<class_Environment_is_fog_height_enabled>` **(** **)** const |
  136. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  137. | :ref:`bool<class_bool>` | :ref:`is_fog_transmit_enabled<class_Environment_is_fog_transmit_enabled>` **(** **)** const |
  138. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  139. | :ref:`bool<class_bool>` | :ref:`is_glow_bicubic_upscale_enabled<class_Environment_is_glow_bicubic_upscale_enabled>` **(** **)** const |
  140. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  141. | :ref:`bool<class_bool>` | :ref:`is_glow_enabled<class_Environment_is_glow_enabled>` **(** **)** const |
  142. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  143. | :ref:`bool<class_bool>` | :ref:`is_glow_level_enabled<class_Environment_is_glow_level_enabled>` **(** :ref:`int<class_int>` idx **)** const |
  144. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  145. | :ref:`bool<class_bool>` | :ref:`is_ssao_blur_enabled<class_Environment_is_ssao_blur_enabled>` **(** **)** const |
  146. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  147. | :ref:`bool<class_bool>` | :ref:`is_ssao_enabled<class_Environment_is_ssao_enabled>` **(** **)** const |
  148. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  149. | :ref:`bool<class_bool>` | :ref:`is_ssr_enabled<class_Environment_is_ssr_enabled>` **(** **)** const |
  150. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  151. | :ref:`bool<class_bool>` | :ref:`is_ssr_rough<class_Environment_is_ssr_rough>` **(** **)** const |
  152. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  153. | void | :ref:`set_adjustment_brightness<class_Environment_set_adjustment_brightness>` **(** :ref:`float<class_float>` brightness **)** |
  154. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  155. | void | :ref:`set_adjustment_color_correction<class_Environment_set_adjustment_color_correction>` **(** :ref:`Texture<class_texture>` color_correction **)** |
  156. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  157. | void | :ref:`set_adjustment_contrast<class_Environment_set_adjustment_contrast>` **(** :ref:`float<class_float>` contrast **)** |
  158. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  159. | void | :ref:`set_adjustment_enable<class_Environment_set_adjustment_enable>` **(** :ref:`bool<class_bool>` enabled **)** |
  160. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  161. | void | :ref:`set_adjustment_saturation<class_Environment_set_adjustment_saturation>` **(** :ref:`float<class_float>` saturation **)** |
  162. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  163. | void | :ref:`set_ambient_light_color<class_Environment_set_ambient_light_color>` **(** :ref:`Color<class_color>` color **)** |
  164. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  165. | void | :ref:`set_ambient_light_energy<class_Environment_set_ambient_light_energy>` **(** :ref:`float<class_float>` energy **)** |
  166. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  167. | void | :ref:`set_ambient_light_sky_contribution<class_Environment_set_ambient_light_sky_contribution>` **(** :ref:`float<class_float>` energy **)** |
  168. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  169. | void | :ref:`set_background<class_Environment_set_background>` **(** :ref:`int<class_int>` mode **)** |
  170. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  171. | void | :ref:`set_bg_color<class_Environment_set_bg_color>` **(** :ref:`Color<class_color>` color **)** |
  172. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  173. | void | :ref:`set_bg_energy<class_Environment_set_bg_energy>` **(** :ref:`float<class_float>` energy **)** |
  174. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  175. | void | :ref:`set_canvas_max_layer<class_Environment_set_canvas_max_layer>` **(** :ref:`int<class_int>` layer **)** |
  176. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  177. | void | :ref:`set_dof_blur_far_amount<class_Environment_set_dof_blur_far_amount>` **(** :ref:`float<class_float>` intensity **)** |
  178. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  179. | void | :ref:`set_dof_blur_far_distance<class_Environment_set_dof_blur_far_distance>` **(** :ref:`float<class_float>` intensity **)** |
  180. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  181. | void | :ref:`set_dof_blur_far_enabled<class_Environment_set_dof_blur_far_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
  182. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  183. | void | :ref:`set_dof_blur_far_quality<class_Environment_set_dof_blur_far_quality>` **(** :ref:`int<class_int>` intensity **)** |
  184. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  185. | void | :ref:`set_dof_blur_far_transition<class_Environment_set_dof_blur_far_transition>` **(** :ref:`float<class_float>` intensity **)** |
  186. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  187. | void | :ref:`set_dof_blur_near_amount<class_Environment_set_dof_blur_near_amount>` **(** :ref:`float<class_float>` intensity **)** |
  188. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  189. | void | :ref:`set_dof_blur_near_distance<class_Environment_set_dof_blur_near_distance>` **(** :ref:`float<class_float>` intensity **)** |
  190. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  191. | void | :ref:`set_dof_blur_near_enabled<class_Environment_set_dof_blur_near_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
  192. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  193. | void | :ref:`set_dof_blur_near_quality<class_Environment_set_dof_blur_near_quality>` **(** :ref:`int<class_int>` level **)** |
  194. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  195. | void | :ref:`set_dof_blur_near_transition<class_Environment_set_dof_blur_near_transition>` **(** :ref:`float<class_float>` intensity **)** |
  196. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  197. | void | :ref:`set_fog_color<class_Environment_set_fog_color>` **(** :ref:`Color<class_color>` color **)** |
  198. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  199. | void | :ref:`set_fog_depth_begin<class_Environment_set_fog_depth_begin>` **(** :ref:`float<class_float>` distance **)** |
  200. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  201. | void | :ref:`set_fog_depth_curve<class_Environment_set_fog_depth_curve>` **(** :ref:`float<class_float>` curve **)** |
  202. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  203. | void | :ref:`set_fog_depth_enabled<class_Environment_set_fog_depth_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
  204. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  205. | void | :ref:`set_fog_enabled<class_Environment_set_fog_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
  206. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  207. | void | :ref:`set_fog_height_curve<class_Environment_set_fog_height_curve>` **(** :ref:`float<class_float>` curve **)** |
  208. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  209. | void | :ref:`set_fog_height_enabled<class_Environment_set_fog_height_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
  210. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  211. | void | :ref:`set_fog_height_max<class_Environment_set_fog_height_max>` **(** :ref:`float<class_float>` height **)** |
  212. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  213. | void | :ref:`set_fog_height_min<class_Environment_set_fog_height_min>` **(** :ref:`float<class_float>` height **)** |
  214. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  215. | void | :ref:`set_fog_sun_amount<class_Environment_set_fog_sun_amount>` **(** :ref:`float<class_float>` amount **)** |
  216. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  217. | void | :ref:`set_fog_sun_color<class_Environment_set_fog_sun_color>` **(** :ref:`Color<class_color>` color **)** |
  218. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  219. | void | :ref:`set_fog_transmit_curve<class_Environment_set_fog_transmit_curve>` **(** :ref:`float<class_float>` curve **)** |
  220. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  221. | void | :ref:`set_fog_transmit_enabled<class_Environment_set_fog_transmit_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
  222. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  223. | void | :ref:`set_glow_bicubic_upscale<class_Environment_set_glow_bicubic_upscale>` **(** :ref:`bool<class_bool>` enabled **)** |
  224. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  225. | void | :ref:`set_glow_blend_mode<class_Environment_set_glow_blend_mode>` **(** :ref:`int<class_int>` mode **)** |
  226. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  227. | void | :ref:`set_glow_bloom<class_Environment_set_glow_bloom>` **(** :ref:`float<class_float>` amount **)** |
  228. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  229. | void | :ref:`set_glow_enabled<class_Environment_set_glow_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
  230. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  231. | void | :ref:`set_glow_hdr_bleed_scale<class_Environment_set_glow_hdr_bleed_scale>` **(** :ref:`float<class_float>` scale **)** |
  232. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  233. | void | :ref:`set_glow_hdr_bleed_threshold<class_Environment_set_glow_hdr_bleed_threshold>` **(** :ref:`float<class_float>` threshold **)** |
  234. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  235. | void | :ref:`set_glow_intensity<class_Environment_set_glow_intensity>` **(** :ref:`float<class_float>` intensity **)** |
  236. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  237. | void | :ref:`set_glow_level<class_Environment_set_glow_level>` **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` enabled **)** |
  238. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  239. | void | :ref:`set_glow_strength<class_Environment_set_glow_strength>` **(** :ref:`float<class_float>` strength **)** |
  240. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  241. | void | :ref:`set_sky<class_Environment_set_sky>` **(** :ref:`Sky<class_sky>` sky **)** |
  242. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  243. | void | :ref:`set_sky_custom_fov<class_Environment_set_sky_custom_fov>` **(** :ref:`float<class_float>` scale **)** |
  244. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  245. | void | :ref:`set_ssao_bias<class_Environment_set_ssao_bias>` **(** :ref:`float<class_float>` bias **)** |
  246. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  247. | void | :ref:`set_ssao_blur<class_Environment_set_ssao_blur>` **(** :ref:`bool<class_bool>` enabled **)** |
  248. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  249. | void | :ref:`set_ssao_color<class_Environment_set_ssao_color>` **(** :ref:`Color<class_color>` color **)** |
  250. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  251. | void | :ref:`set_ssao_direct_light_affect<class_Environment_set_ssao_direct_light_affect>` **(** :ref:`float<class_float>` amount **)** |
  252. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  253. | void | :ref:`set_ssao_enabled<class_Environment_set_ssao_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
  254. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  255. | void | :ref:`set_ssao_intensity<class_Environment_set_ssao_intensity>` **(** :ref:`float<class_float>` intensity **)** |
  256. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  257. | void | :ref:`set_ssao_intensity2<class_Environment_set_ssao_intensity2>` **(** :ref:`float<class_float>` intensity **)** |
  258. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  259. | void | :ref:`set_ssao_radius<class_Environment_set_ssao_radius>` **(** :ref:`float<class_float>` radius **)** |
  260. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  261. | void | :ref:`set_ssao_radius2<class_Environment_set_ssao_radius2>` **(** :ref:`float<class_float>` radius **)** |
  262. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  263. | void | :ref:`set_ssr_depth_tolerance<class_Environment_set_ssr_depth_tolerance>` **(** :ref:`float<class_float>` depth_tolerance **)** |
  264. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  265. | void | :ref:`set_ssr_enabled<class_Environment_set_ssr_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
  266. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  267. | void | :ref:`set_ssr_fade_in<class_Environment_set_ssr_fade_in>` **(** :ref:`float<class_float>` fade_in **)** |
  268. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  269. | void | :ref:`set_ssr_fade_out<class_Environment_set_ssr_fade_out>` **(** :ref:`float<class_float>` fade_out **)** |
  270. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  271. | void | :ref:`set_ssr_max_steps<class_Environment_set_ssr_max_steps>` **(** :ref:`int<class_int>` max_steps **)** |
  272. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  273. | void | :ref:`set_ssr_rough<class_Environment_set_ssr_rough>` **(** :ref:`bool<class_bool>` rough **)** |
  274. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  275. | void | :ref:`set_tonemap_auto_exposure<class_Environment_set_tonemap_auto_exposure>` **(** :ref:`bool<class_bool>` auto_exposure **)** |
  276. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  277. | void | :ref:`set_tonemap_auto_exposure_grey<class_Environment_set_tonemap_auto_exposure_grey>` **(** :ref:`float<class_float>` exposure_grey **)** |
  278. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  279. | void | :ref:`set_tonemap_auto_exposure_max<class_Environment_set_tonemap_auto_exposure_max>` **(** :ref:`float<class_float>` exposure_max **)** |
  280. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  281. | void | :ref:`set_tonemap_auto_exposure_min<class_Environment_set_tonemap_auto_exposure_min>` **(** :ref:`float<class_float>` exposure_min **)** |
  282. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  283. | void | :ref:`set_tonemap_auto_exposure_speed<class_Environment_set_tonemap_auto_exposure_speed>` **(** :ref:`float<class_float>` exposure_speed **)** |
  284. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  285. | void | :ref:`set_tonemap_exposure<class_Environment_set_tonemap_exposure>` **(** :ref:`float<class_float>` exposure **)** |
  286. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  287. | void | :ref:`set_tonemap_white<class_Environment_set_tonemap_white>` **(** :ref:`float<class_float>` white **)** |
  288. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  289. | void | :ref:`set_tonemapper<class_Environment_set_tonemapper>` **(** :ref:`int<class_int>` mode **)** |
  290. +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
  291. Member Variables
  292. ----------------
  293. - :ref:`float<class_float>` **adjustment_brightness** - Global brightness value of the rendered scene (default value is 1).
  294. - :ref:`Texture<class_texture>` **adjustment_color_correction** - Applies the provided [Texture] resource to affect the global color aspect of the rendered scene.
  295. - :ref:`float<class_float>` **adjustment_contrast** - Global contrast value of the rendered scene (default value is 1).
  296. - :ref:`bool<class_bool>` **adjustment_enabled** - Enables the adjustment_* options provided by this resource. If false, adjustments modifications will have no effect on the rendered scene.
  297. - :ref:`float<class_float>` **adjustment_saturation** - Global color saturation value of the rendered scene (default value is 1).
  298. - :ref:`Color<class_color>` **ambient_light_color** - [Color] of the ambient light.
  299. - :ref:`float<class_float>` **ambient_light_energy** - Energy of the ambient light. The higher the value, the stronger the light.
  300. - :ref:`float<class_float>` **ambient_light_sky_contribution** - Defines the amount of light that the sky brings on the scene. A value of 0 means that the sky's light emission has no effect on the scene illumination, thus all ambient illumination is provided by the ambient light. On the contrary, a value of 1 means that all the light that affects the scene is provided by the sky, thus the ambient light parameter has no effect on the scene.
  301. - :ref:`bool<class_bool>` **auto_exposure_enabled** - Enables the tonemapping auto exposure mode of the scene renderer. If activated, the renderer will automatically determine the exposure setting to adapt to the illumination of the scene and the observed light.
  302. - :ref:`float<class_float>` **auto_exposure_max_luma** - Maximum luminance value for the auto exposure.
  303. - :ref:`float<class_float>` **auto_exposure_min_luma** - Minimum luminance value for the auto exposure.
  304. - :ref:`float<class_float>` **auto_exposure_scale** - Scale of the auto exposure effect. Affects the intensity of auto exposure.
  305. - :ref:`float<class_float>` **auto_exposure_speed** - Speed of the auto exposure effect. Affects the time needed for the camera to perform auto exposure.
  306. - :ref:`int<class_int>` **background_canvas_max_layer** - Maximum layer id (if using Layer background mode).
  307. - :ref:`Color<class_color>` **background_color** - Color displayed for clear areas of the scene (if using Custom color or Color+Sky background modes).
  308. - :ref:`float<class_float>` **background_energy** - Power of light emitted by the background.
  309. - :ref:`int<class_int>` **background_mode** - Defines the mode of background.
  310. - :ref:`Sky<class_sky>` **background_sky** - [Sky] resource defined as background.
  311. - :ref:`float<class_float>` **background_sky_custom_fov** - [Sky] resource's custom field of view.
  312. - :ref:`float<class_float>` **dof_blur_far_amount** - Amount of far blur.
  313. - :ref:`float<class_float>` **dof_blur_far_distance** - Distance from the camera where the far blur effect affects the rendering.
  314. - :ref:`bool<class_bool>` **dof_blur_far_enabled** - Enables the far blur effect.
  315. - :ref:`int<class_int>` **dof_blur_far_quality** - Quality of the far blur quality.
  316. - :ref:`float<class_float>` **dof_blur_far_transition** - Transition between no-blur area and far blur.
  317. - :ref:`float<class_float>` **dof_blur_near_amount** - Amount of near blur.
  318. - :ref:`float<class_float>` **dof_blur_near_distance** - Distance from the camera where the near blur effect affects the rendering.
  319. - :ref:`bool<class_bool>` **dof_blur_near_enabled** - Enables the near blur effect.
  320. - :ref:`int<class_int>` **dof_blur_near_quality** - Quality of the near blur quality.
  321. - :ref:`float<class_float>` **dof_blur_near_transition** - Transition between near blur and no-blur area.
  322. - :ref:`Color<class_color>` **fog_color** - Fog's [Color].
  323. - :ref:`float<class_float>` **fog_depth_begin** - Fog's depth starting distance from the camera.
  324. - :ref:`float<class_float>` **fog_depth_curve** - Value defining the fog depth intensity.
  325. - :ref:`bool<class_bool>` **fog_depth_enabled** - Enables the fog depth.
  326. - :ref:`bool<class_bool>` **fog_enabled** - Enables the fog. Needs fog_height_enabled and/or for_depth_enabled to actually display fog.
  327. - :ref:`float<class_float>` **fog_height_curve** - Value defining the fog height intensity.
  328. - :ref:`bool<class_bool>` **fog_height_enabled** - Enables the fog height.
  329. - :ref:`float<class_float>` **fog_height_max** - Maximum height of fog.
  330. - :ref:`float<class_float>` **fog_height_min** - Minimum height of fog.
  331. - :ref:`float<class_float>` **fog_sun_amount** - Amount of sun that affects the fog rendering.
  332. - :ref:`Color<class_color>` **fog_sun_color** - Sun [Color].
  333. - :ref:`float<class_float>` **fog_transmit_curve** - Amount of light that the fog transmits.
  334. - :ref:`bool<class_bool>` **fog_transmit_enabled** - Enables fog's light transmission. If enabled, lets reflections light to be transmitted by the fog.
  335. - :ref:`bool<class_bool>` **glow_bicubic_upscale**
  336. - :ref:`int<class_int>` **glow_blend_mode** - Glow blending mode.
  337. - :ref:`float<class_float>` **glow_bloom** - Bloom value (global glow).
  338. - :ref:`bool<class_bool>` **glow_enabled** - Enables glow rendering.
  339. - :ref:`float<class_float>` **glow_hdr_scale** - Bleed scale of the HDR glow.
  340. - :ref:`float<class_float>` **glow_hdr_threshold** - Bleed threshold of the HDR glow.
  341. - :ref:`float<class_float>` **glow_intensity** - Glow intensity.
  342. - :ref:`bool<class_bool>` **glow_levels/1** - First level of glow (most local).
  343. - :ref:`bool<class_bool>` **glow_levels/2** - Second level of glow.
  344. - :ref:`bool<class_bool>` **glow_levels/3** - Third level of glow.
  345. - :ref:`bool<class_bool>` **glow_levels/4** - Fourth level of glow.
  346. - :ref:`bool<class_bool>` **glow_levels/5** - Fifth level of glow.
  347. - :ref:`bool<class_bool>` **glow_levels/6** - Sixth level of glow.
  348. - :ref:`bool<class_bool>` **glow_levels/7** - Seventh level of glow (most global).
  349. - :ref:`float<class_float>` **glow_strength** - Glow strength.
  350. - :ref:`float<class_float>` **ss_reflections_depth_tolerance**
  351. - :ref:`bool<class_bool>` **ss_reflections_enabled**
  352. - :ref:`float<class_float>` **ss_reflections_fade_in**
  353. - :ref:`float<class_float>` **ss_reflections_fade_out**
  354. - :ref:`int<class_int>` **ss_reflections_max_steps**
  355. - :ref:`bool<class_bool>` **ss_reflections_roughness**
  356. - :ref:`float<class_float>` **ssao_bias**
  357. - :ref:`bool<class_bool>` **ssao_blur**
  358. - :ref:`Color<class_color>` **ssao_color**
  359. - :ref:`bool<class_bool>` **ssao_enabled**
  360. - :ref:`float<class_float>` **ssao_intensity**
  361. - :ref:`float<class_float>` **ssao_intensity2**
  362. - :ref:`float<class_float>` **ssao_light_affect**
  363. - :ref:`float<class_float>` **ssao_radius**
  364. - :ref:`float<class_float>` **ssao_radius2**
  365. - :ref:`float<class_float>` **tonemap_exposure** - Default exposure for tonemap.
  366. - :ref:`int<class_int>` **tonemap_mode** - Tonemapping mode.
  367. - :ref:`float<class_float>` **tonemap_white** - White reference value for tonemap.
  368. Numeric Constants
  369. -----------------
  370. - **BG_KEEP** = **5** --- Keep on screen every pixel drawn in the background.
  371. - **BG_CLEAR_COLOR** = **0** --- Clear the background using the project's clear color.
  372. - **BG_COLOR** = **1** --- Clear the background using a custom clear color.
  373. - **BG_SKY** = **2** --- Display a user-defined sky in the background.
  374. - **BG_COLOR_SKY** = **3** --- Clear the background using a custom clear color and allows defining a sky for shading and reflection.
  375. - **BG_CANVAS** = **4** --- Display a :ref:`CanvasLayer<class_canvaslayer>` in the background.
  376. - **BG_MAX** = **6** --- Helper constant keeping track of the enum's size, has no direct usage in API calls.
  377. - **GLOW_BLEND_MODE_ADDITIVE** = **0** --- Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources.
  378. - **GLOW_BLEND_MODE_SCREEN** = **1** --- Screen glow blending mode. Increases brightness, used frequently with bloom.
  379. - **GLOW_BLEND_MODE_SOFTLIGHT** = **2** --- Softlight glow blending mode. Modifies contrast, exposes shadows and highlights, vivid bloom.
  380. - **GLOW_BLEND_MODE_REPLACE** = **3** --- Replace glow blending mode. Replaces all pixels' color by the glow value.
  381. - **TONE_MAPPER_LINEAR** = **0** --- Linear tonemapper operator. Reads the linear data and performs an exposure adjustment.
  382. - **TONE_MAPPER_REINHARDT** = **1** --- Reinhardt tonemapper operator. Performs a variation on rendered pixels' colors by this formula: color = color / (1 + color).
  383. - **TONE_MAPPER_FILMIC** = **2** --- Filmic tonemapper operator.
  384. - **TONE_MAPPER_ACES** = **3** --- Academy Color Encoding System tonemapper operator.
  385. - **DOF_BLUR_QUALITY_LOW** = **0** --- Low depth-of-field blur quality.
  386. - **DOF_BLUR_QUALITY_MEDIUM** = **1** --- Medium depth-of-field blur quality.
  387. - **DOF_BLUR_QUALITY_HIGH** = **2** --- High depth-of-field blur quality.
  388. Description
  389. -----------
  390. Resource for environment nodes (like :ref:`WorldEnvironment<class_worldenvironment>`) that define multiple environment operations (such as background :ref:`Sky<class_sky>` or :ref:`Color<class_color>`, ambient light, fog, depth-of-field...). These parameters affect the final render of the scene. The order of these operations is:
  391. - DOF Blur
  392. - Motion Blur
  393. - Bloom
  394. - Tonemap (auto exposure)
  395. - Adjustments
  396. Member Function Description
  397. ---------------------------
  398. .. _class_Environment_get_adjustment_brightness:
  399. - :ref:`float<class_float>` **get_adjustment_brightness** **(** **)** const
  400. .. _class_Environment_get_adjustment_color_correction:
  401. - :ref:`Texture<class_texture>` **get_adjustment_color_correction** **(** **)** const
  402. .. _class_Environment_get_adjustment_contrast:
  403. - :ref:`float<class_float>` **get_adjustment_contrast** **(** **)** const
  404. .. _class_Environment_get_adjustment_saturation:
  405. - :ref:`float<class_float>` **get_adjustment_saturation** **(** **)** const
  406. .. _class_Environment_get_ambient_light_color:
  407. - :ref:`Color<class_color>` **get_ambient_light_color** **(** **)** const
  408. .. _class_Environment_get_ambient_light_energy:
  409. - :ref:`float<class_float>` **get_ambient_light_energy** **(** **)** const
  410. .. _class_Environment_get_ambient_light_sky_contribution:
  411. - :ref:`float<class_float>` **get_ambient_light_sky_contribution** **(** **)** const
  412. .. _class_Environment_get_background:
  413. - :ref:`int<class_int>` **get_background** **(** **)** const
  414. .. _class_Environment_get_bg_color:
  415. - :ref:`Color<class_color>` **get_bg_color** **(** **)** const
  416. .. _class_Environment_get_bg_energy:
  417. - :ref:`float<class_float>` **get_bg_energy** **(** **)** const
  418. .. _class_Environment_get_canvas_max_layer:
  419. - :ref:`int<class_int>` **get_canvas_max_layer** **(** **)** const
  420. .. _class_Environment_get_dof_blur_far_amount:
  421. - :ref:`float<class_float>` **get_dof_blur_far_amount** **(** **)** const
  422. .. _class_Environment_get_dof_blur_far_distance:
  423. - :ref:`float<class_float>` **get_dof_blur_far_distance** **(** **)** const
  424. .. _class_Environment_get_dof_blur_far_quality:
  425. - :ref:`int<class_int>` **get_dof_blur_far_quality** **(** **)** const
  426. .. _class_Environment_get_dof_blur_far_transition:
  427. - :ref:`float<class_float>` **get_dof_blur_far_transition** **(** **)** const
  428. .. _class_Environment_get_dof_blur_near_amount:
  429. - :ref:`float<class_float>` **get_dof_blur_near_amount** **(** **)** const
  430. .. _class_Environment_get_dof_blur_near_distance:
  431. - :ref:`float<class_float>` **get_dof_blur_near_distance** **(** **)** const
  432. .. _class_Environment_get_dof_blur_near_quality:
  433. - :ref:`int<class_int>` **get_dof_blur_near_quality** **(** **)** const
  434. .. _class_Environment_get_dof_blur_near_transition:
  435. - :ref:`float<class_float>` **get_dof_blur_near_transition** **(** **)** const
  436. .. _class_Environment_get_fog_color:
  437. - :ref:`Color<class_color>` **get_fog_color** **(** **)** const
  438. .. _class_Environment_get_fog_depth_begin:
  439. - :ref:`float<class_float>` **get_fog_depth_begin** **(** **)** const
  440. .. _class_Environment_get_fog_depth_curve:
  441. - :ref:`float<class_float>` **get_fog_depth_curve** **(** **)** const
  442. .. _class_Environment_get_fog_height_curve:
  443. - :ref:`float<class_float>` **get_fog_height_curve** **(** **)** const
  444. .. _class_Environment_get_fog_height_max:
  445. - :ref:`float<class_float>` **get_fog_height_max** **(** **)** const
  446. .. _class_Environment_get_fog_height_min:
  447. - :ref:`float<class_float>` **get_fog_height_min** **(** **)** const
  448. .. _class_Environment_get_fog_sun_amount:
  449. - :ref:`float<class_float>` **get_fog_sun_amount** **(** **)** const
  450. .. _class_Environment_get_fog_sun_color:
  451. - :ref:`Color<class_color>` **get_fog_sun_color** **(** **)** const
  452. .. _class_Environment_get_fog_transmit_curve:
  453. - :ref:`float<class_float>` **get_fog_transmit_curve** **(** **)** const
  454. .. _class_Environment_get_glow_blend_mode:
  455. - :ref:`int<class_int>` **get_glow_blend_mode** **(** **)** const
  456. .. _class_Environment_get_glow_bloom:
  457. - :ref:`float<class_float>` **get_glow_bloom** **(** **)** const
  458. .. _class_Environment_get_glow_hdr_bleed_scale:
  459. - :ref:`float<class_float>` **get_glow_hdr_bleed_scale** **(** **)** const
  460. .. _class_Environment_get_glow_hdr_bleed_threshold:
  461. - :ref:`float<class_float>` **get_glow_hdr_bleed_threshold** **(** **)** const
  462. .. _class_Environment_get_glow_intensity:
  463. - :ref:`float<class_float>` **get_glow_intensity** **(** **)** const
  464. .. _class_Environment_get_glow_strength:
  465. - :ref:`float<class_float>` **get_glow_strength** **(** **)** const
  466. .. _class_Environment_get_sky:
  467. - :ref:`Sky<class_sky>` **get_sky** **(** **)** const
  468. .. _class_Environment_get_sky_custom_fov:
  469. - :ref:`float<class_float>` **get_sky_custom_fov** **(** **)** const
  470. .. _class_Environment_get_ssao_bias:
  471. - :ref:`float<class_float>` **get_ssao_bias** **(** **)** const
  472. .. _class_Environment_get_ssao_color:
  473. - :ref:`Color<class_color>` **get_ssao_color** **(** **)** const
  474. .. _class_Environment_get_ssao_direct_light_affect:
  475. - :ref:`float<class_float>` **get_ssao_direct_light_affect** **(** **)** const
  476. .. _class_Environment_get_ssao_intensity:
  477. - :ref:`float<class_float>` **get_ssao_intensity** **(** **)** const
  478. .. _class_Environment_get_ssao_intensity2:
  479. - :ref:`float<class_float>` **get_ssao_intensity2** **(** **)** const
  480. .. _class_Environment_get_ssao_radius:
  481. - :ref:`float<class_float>` **get_ssao_radius** **(** **)** const
  482. .. _class_Environment_get_ssao_radius2:
  483. - :ref:`float<class_float>` **get_ssao_radius2** **(** **)** const
  484. .. _class_Environment_get_ssr_depth_tolerance:
  485. - :ref:`float<class_float>` **get_ssr_depth_tolerance** **(** **)** const
  486. .. _class_Environment_get_ssr_fade_in:
  487. - :ref:`float<class_float>` **get_ssr_fade_in** **(** **)** const
  488. .. _class_Environment_get_ssr_fade_out:
  489. - :ref:`float<class_float>` **get_ssr_fade_out** **(** **)** const
  490. .. _class_Environment_get_ssr_max_steps:
  491. - :ref:`int<class_int>` **get_ssr_max_steps** **(** **)** const
  492. .. _class_Environment_get_tonemap_auto_exposure:
  493. - :ref:`bool<class_bool>` **get_tonemap_auto_exposure** **(** **)** const
  494. .. _class_Environment_get_tonemap_auto_exposure_grey:
  495. - :ref:`float<class_float>` **get_tonemap_auto_exposure_grey** **(** **)** const
  496. .. _class_Environment_get_tonemap_auto_exposure_max:
  497. - :ref:`float<class_float>` **get_tonemap_auto_exposure_max** **(** **)** const
  498. .. _class_Environment_get_tonemap_auto_exposure_min:
  499. - :ref:`float<class_float>` **get_tonemap_auto_exposure_min** **(** **)** const
  500. .. _class_Environment_get_tonemap_auto_exposure_speed:
  501. - :ref:`float<class_float>` **get_tonemap_auto_exposure_speed** **(** **)** const
  502. .. _class_Environment_get_tonemap_exposure:
  503. - :ref:`float<class_float>` **get_tonemap_exposure** **(** **)** const
  504. .. _class_Environment_get_tonemap_white:
  505. - :ref:`float<class_float>` **get_tonemap_white** **(** **)** const
  506. .. _class_Environment_get_tonemapper:
  507. - :ref:`int<class_int>` **get_tonemapper** **(** **)** const
  508. .. _class_Environment_is_adjustment_enabled:
  509. - :ref:`bool<class_bool>` **is_adjustment_enabled** **(** **)** const
  510. .. _class_Environment_is_dof_blur_far_enabled:
  511. - :ref:`bool<class_bool>` **is_dof_blur_far_enabled** **(** **)** const
  512. .. _class_Environment_is_dof_blur_near_enabled:
  513. - :ref:`bool<class_bool>` **is_dof_blur_near_enabled** **(** **)** const
  514. .. _class_Environment_is_fog_depth_enabled:
  515. - :ref:`bool<class_bool>` **is_fog_depth_enabled** **(** **)** const
  516. .. _class_Environment_is_fog_enabled:
  517. - :ref:`bool<class_bool>` **is_fog_enabled** **(** **)** const
  518. .. _class_Environment_is_fog_height_enabled:
  519. - :ref:`bool<class_bool>` **is_fog_height_enabled** **(** **)** const
  520. .. _class_Environment_is_fog_transmit_enabled:
  521. - :ref:`bool<class_bool>` **is_fog_transmit_enabled** **(** **)** const
  522. .. _class_Environment_is_glow_bicubic_upscale_enabled:
  523. - :ref:`bool<class_bool>` **is_glow_bicubic_upscale_enabled** **(** **)** const
  524. .. _class_Environment_is_glow_enabled:
  525. - :ref:`bool<class_bool>` **is_glow_enabled** **(** **)** const
  526. .. _class_Environment_is_glow_level_enabled:
  527. - :ref:`bool<class_bool>` **is_glow_level_enabled** **(** :ref:`int<class_int>` idx **)** const
  528. .. _class_Environment_is_ssao_blur_enabled:
  529. - :ref:`bool<class_bool>` **is_ssao_blur_enabled** **(** **)** const
  530. .. _class_Environment_is_ssao_enabled:
  531. - :ref:`bool<class_bool>` **is_ssao_enabled** **(** **)** const
  532. .. _class_Environment_is_ssr_enabled:
  533. - :ref:`bool<class_bool>` **is_ssr_enabled** **(** **)** const
  534. .. _class_Environment_is_ssr_rough:
  535. - :ref:`bool<class_bool>` **is_ssr_rough** **(** **)** const
  536. .. _class_Environment_set_adjustment_brightness:
  537. - void **set_adjustment_brightness** **(** :ref:`float<class_float>` brightness **)**
  538. .. _class_Environment_set_adjustment_color_correction:
  539. - void **set_adjustment_color_correction** **(** :ref:`Texture<class_texture>` color_correction **)**
  540. .. _class_Environment_set_adjustment_contrast:
  541. - void **set_adjustment_contrast** **(** :ref:`float<class_float>` contrast **)**
  542. .. _class_Environment_set_adjustment_enable:
  543. - void **set_adjustment_enable** **(** :ref:`bool<class_bool>` enabled **)**
  544. .. _class_Environment_set_adjustment_saturation:
  545. - void **set_adjustment_saturation** **(** :ref:`float<class_float>` saturation **)**
  546. .. _class_Environment_set_ambient_light_color:
  547. - void **set_ambient_light_color** **(** :ref:`Color<class_color>` color **)**
  548. .. _class_Environment_set_ambient_light_energy:
  549. - void **set_ambient_light_energy** **(** :ref:`float<class_float>` energy **)**
  550. .. _class_Environment_set_ambient_light_sky_contribution:
  551. - void **set_ambient_light_sky_contribution** **(** :ref:`float<class_float>` energy **)**
  552. .. _class_Environment_set_background:
  553. - void **set_background** **(** :ref:`int<class_int>` mode **)**
  554. .. _class_Environment_set_bg_color:
  555. - void **set_bg_color** **(** :ref:`Color<class_color>` color **)**
  556. .. _class_Environment_set_bg_energy:
  557. - void **set_bg_energy** **(** :ref:`float<class_float>` energy **)**
  558. .. _class_Environment_set_canvas_max_layer:
  559. - void **set_canvas_max_layer** **(** :ref:`int<class_int>` layer **)**
  560. .. _class_Environment_set_dof_blur_far_amount:
  561. - void **set_dof_blur_far_amount** **(** :ref:`float<class_float>` intensity **)**
  562. .. _class_Environment_set_dof_blur_far_distance:
  563. - void **set_dof_blur_far_distance** **(** :ref:`float<class_float>` intensity **)**
  564. .. _class_Environment_set_dof_blur_far_enabled:
  565. - void **set_dof_blur_far_enabled** **(** :ref:`bool<class_bool>` enabled **)**
  566. .. _class_Environment_set_dof_blur_far_quality:
  567. - void **set_dof_blur_far_quality** **(** :ref:`int<class_int>` intensity **)**
  568. .. _class_Environment_set_dof_blur_far_transition:
  569. - void **set_dof_blur_far_transition** **(** :ref:`float<class_float>` intensity **)**
  570. .. _class_Environment_set_dof_blur_near_amount:
  571. - void **set_dof_blur_near_amount** **(** :ref:`float<class_float>` intensity **)**
  572. .. _class_Environment_set_dof_blur_near_distance:
  573. - void **set_dof_blur_near_distance** **(** :ref:`float<class_float>` intensity **)**
  574. .. _class_Environment_set_dof_blur_near_enabled:
  575. - void **set_dof_blur_near_enabled** **(** :ref:`bool<class_bool>` enabled **)**
  576. .. _class_Environment_set_dof_blur_near_quality:
  577. - void **set_dof_blur_near_quality** **(** :ref:`int<class_int>` level **)**
  578. .. _class_Environment_set_dof_blur_near_transition:
  579. - void **set_dof_blur_near_transition** **(** :ref:`float<class_float>` intensity **)**
  580. .. _class_Environment_set_fog_color:
  581. - void **set_fog_color** **(** :ref:`Color<class_color>` color **)**
  582. .. _class_Environment_set_fog_depth_begin:
  583. - void **set_fog_depth_begin** **(** :ref:`float<class_float>` distance **)**
  584. .. _class_Environment_set_fog_depth_curve:
  585. - void **set_fog_depth_curve** **(** :ref:`float<class_float>` curve **)**
  586. .. _class_Environment_set_fog_depth_enabled:
  587. - void **set_fog_depth_enabled** **(** :ref:`bool<class_bool>` enabled **)**
  588. .. _class_Environment_set_fog_enabled:
  589. - void **set_fog_enabled** **(** :ref:`bool<class_bool>` enabled **)**
  590. .. _class_Environment_set_fog_height_curve:
  591. - void **set_fog_height_curve** **(** :ref:`float<class_float>` curve **)**
  592. .. _class_Environment_set_fog_height_enabled:
  593. - void **set_fog_height_enabled** **(** :ref:`bool<class_bool>` enabled **)**
  594. .. _class_Environment_set_fog_height_max:
  595. - void **set_fog_height_max** **(** :ref:`float<class_float>` height **)**
  596. .. _class_Environment_set_fog_height_min:
  597. - void **set_fog_height_min** **(** :ref:`float<class_float>` height **)**
  598. .. _class_Environment_set_fog_sun_amount:
  599. - void **set_fog_sun_amount** **(** :ref:`float<class_float>` amount **)**
  600. .. _class_Environment_set_fog_sun_color:
  601. - void **set_fog_sun_color** **(** :ref:`Color<class_color>` color **)**
  602. .. _class_Environment_set_fog_transmit_curve:
  603. - void **set_fog_transmit_curve** **(** :ref:`float<class_float>` curve **)**
  604. .. _class_Environment_set_fog_transmit_enabled:
  605. - void **set_fog_transmit_enabled** **(** :ref:`bool<class_bool>` enabled **)**
  606. .. _class_Environment_set_glow_bicubic_upscale:
  607. - void **set_glow_bicubic_upscale** **(** :ref:`bool<class_bool>` enabled **)**
  608. .. _class_Environment_set_glow_blend_mode:
  609. - void **set_glow_blend_mode** **(** :ref:`int<class_int>` mode **)**
  610. .. _class_Environment_set_glow_bloom:
  611. - void **set_glow_bloom** **(** :ref:`float<class_float>` amount **)**
  612. .. _class_Environment_set_glow_enabled:
  613. - void **set_glow_enabled** **(** :ref:`bool<class_bool>` enabled **)**
  614. .. _class_Environment_set_glow_hdr_bleed_scale:
  615. - void **set_glow_hdr_bleed_scale** **(** :ref:`float<class_float>` scale **)**
  616. .. _class_Environment_set_glow_hdr_bleed_threshold:
  617. - void **set_glow_hdr_bleed_threshold** **(** :ref:`float<class_float>` threshold **)**
  618. .. _class_Environment_set_glow_intensity:
  619. - void **set_glow_intensity** **(** :ref:`float<class_float>` intensity **)**
  620. .. _class_Environment_set_glow_level:
  621. - void **set_glow_level** **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` enabled **)**
  622. .. _class_Environment_set_glow_strength:
  623. - void **set_glow_strength** **(** :ref:`float<class_float>` strength **)**
  624. .. _class_Environment_set_sky:
  625. - void **set_sky** **(** :ref:`Sky<class_sky>` sky **)**
  626. .. _class_Environment_set_sky_custom_fov:
  627. - void **set_sky_custom_fov** **(** :ref:`float<class_float>` scale **)**
  628. .. _class_Environment_set_ssao_bias:
  629. - void **set_ssao_bias** **(** :ref:`float<class_float>` bias **)**
  630. .. _class_Environment_set_ssao_blur:
  631. - void **set_ssao_blur** **(** :ref:`bool<class_bool>` enabled **)**
  632. .. _class_Environment_set_ssao_color:
  633. - void **set_ssao_color** **(** :ref:`Color<class_color>` color **)**
  634. .. _class_Environment_set_ssao_direct_light_affect:
  635. - void **set_ssao_direct_light_affect** **(** :ref:`float<class_float>` amount **)**
  636. .. _class_Environment_set_ssao_enabled:
  637. - void **set_ssao_enabled** **(** :ref:`bool<class_bool>` enabled **)**
  638. .. _class_Environment_set_ssao_intensity:
  639. - void **set_ssao_intensity** **(** :ref:`float<class_float>` intensity **)**
  640. .. _class_Environment_set_ssao_intensity2:
  641. - void **set_ssao_intensity2** **(** :ref:`float<class_float>` intensity **)**
  642. .. _class_Environment_set_ssao_radius:
  643. - void **set_ssao_radius** **(** :ref:`float<class_float>` radius **)**
  644. .. _class_Environment_set_ssao_radius2:
  645. - void **set_ssao_radius2** **(** :ref:`float<class_float>` radius **)**
  646. .. _class_Environment_set_ssr_depth_tolerance:
  647. - void **set_ssr_depth_tolerance** **(** :ref:`float<class_float>` depth_tolerance **)**
  648. .. _class_Environment_set_ssr_enabled:
  649. - void **set_ssr_enabled** **(** :ref:`bool<class_bool>` enabled **)**
  650. .. _class_Environment_set_ssr_fade_in:
  651. - void **set_ssr_fade_in** **(** :ref:`float<class_float>` fade_in **)**
  652. .. _class_Environment_set_ssr_fade_out:
  653. - void **set_ssr_fade_out** **(** :ref:`float<class_float>` fade_out **)**
  654. .. _class_Environment_set_ssr_max_steps:
  655. - void **set_ssr_max_steps** **(** :ref:`int<class_int>` max_steps **)**
  656. .. _class_Environment_set_ssr_rough:
  657. - void **set_ssr_rough** **(** :ref:`bool<class_bool>` rough **)**
  658. .. _class_Environment_set_tonemap_auto_exposure:
  659. - void **set_tonemap_auto_exposure** **(** :ref:`bool<class_bool>` auto_exposure **)**
  660. .. _class_Environment_set_tonemap_auto_exposure_grey:
  661. - void **set_tonemap_auto_exposure_grey** **(** :ref:`float<class_float>` exposure_grey **)**
  662. .. _class_Environment_set_tonemap_auto_exposure_max:
  663. - void **set_tonemap_auto_exposure_max** **(** :ref:`float<class_float>` exposure_max **)**
  664. .. _class_Environment_set_tonemap_auto_exposure_min:
  665. - void **set_tonemap_auto_exposure_min** **(** :ref:`float<class_float>` exposure_min **)**
  666. .. _class_Environment_set_tonemap_auto_exposure_speed:
  667. - void **set_tonemap_auto_exposure_speed** **(** :ref:`float<class_float>` exposure_speed **)**
  668. .. _class_Environment_set_tonemap_exposure:
  669. - void **set_tonemap_exposure** **(** :ref:`float<class_float>` exposure **)**
  670. .. _class_Environment_set_tonemap_white:
  671. - void **set_tonemap_white** **(** :ref:`float<class_float>` white **)**
  672. .. _class_Environment_set_tonemapper:
  673. - void **set_tonemapper** **(** :ref:`int<class_int>` mode **)**