class_environment.rst 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the Environment.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_Environment:
  6. Environment
  7. ===========
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Resource for environment nodes (like :ref:`WorldEnvironment<class_WorldEnvironment>`) that define multiple rendering options.
  13. Properties
  14. ----------
  15. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  16. | :ref:`float<class_float>` | :ref:`adjustment_brightness<class_Environment_property_adjustment_brightness>` | 1.0 |
  17. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  18. | :ref:`Texture<class_Texture>` | :ref:`adjustment_color_correction<class_Environment_property_adjustment_color_correction>` | |
  19. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  20. | :ref:`float<class_float>` | :ref:`adjustment_contrast<class_Environment_property_adjustment_contrast>` | 1.0 |
  21. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  22. | :ref:`bool<class_bool>` | :ref:`adjustment_enabled<class_Environment_property_adjustment_enabled>` | false |
  23. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  24. | :ref:`float<class_float>` | :ref:`adjustment_saturation<class_Environment_property_adjustment_saturation>` | 1.0 |
  25. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  26. | :ref:`Color<class_Color>` | :ref:`ambient_light_color<class_Environment_property_ambient_light_color>` | Color( 0, 0, 0, 1 ) |
  27. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  28. | :ref:`float<class_float>` | :ref:`ambient_light_energy<class_Environment_property_ambient_light_energy>` | 1.0 |
  29. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  30. | :ref:`float<class_float>` | :ref:`ambient_light_sky_contribution<class_Environment_property_ambient_light_sky_contribution>` | 1.0 |
  31. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  32. | :ref:`bool<class_bool>` | :ref:`auto_exposure_enabled<class_Environment_property_auto_exposure_enabled>` | false |
  33. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  34. | :ref:`float<class_float>` | :ref:`auto_exposure_max_luma<class_Environment_property_auto_exposure_max_luma>` | 8.0 |
  35. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  36. | :ref:`float<class_float>` | :ref:`auto_exposure_min_luma<class_Environment_property_auto_exposure_min_luma>` | 0.05 |
  37. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  38. | :ref:`float<class_float>` | :ref:`auto_exposure_scale<class_Environment_property_auto_exposure_scale>` | 0.4 |
  39. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  40. | :ref:`float<class_float>` | :ref:`auto_exposure_speed<class_Environment_property_auto_exposure_speed>` | 0.5 |
  41. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  42. | :ref:`int<class_int>` | :ref:`background_camera_feed_id<class_Environment_property_background_camera_feed_id>` | 1 |
  43. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  44. | :ref:`int<class_int>` | :ref:`background_canvas_max_layer<class_Environment_property_background_canvas_max_layer>` | 0 |
  45. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  46. | :ref:`Color<class_Color>` | :ref:`background_color<class_Environment_property_background_color>` | Color( 0, 0, 0, 1 ) |
  47. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  48. | :ref:`float<class_float>` | :ref:`background_energy<class_Environment_property_background_energy>` | 1.0 |
  49. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  50. | :ref:`BGMode<enum_Environment_BGMode>` | :ref:`background_mode<class_Environment_property_background_mode>` | 0 |
  51. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  52. | :ref:`Sky<class_Sky>` | :ref:`background_sky<class_Environment_property_background_sky>` | |
  53. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  54. | :ref:`float<class_float>` | :ref:`background_sky_custom_fov<class_Environment_property_background_sky_custom_fov>` | 0.0 |
  55. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  56. | :ref:`Basis<class_Basis>` | :ref:`background_sky_orientation<class_Environment_property_background_sky_orientation>` | Basis( 1, 0, 0, 0, 1, 0, 0, 0, 1 ) |
  57. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  58. | :ref:`Vector3<class_Vector3>` | :ref:`background_sky_rotation<class_Environment_property_background_sky_rotation>` | Vector3( 0, 0, 0 ) |
  59. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  60. | :ref:`Vector3<class_Vector3>` | :ref:`background_sky_rotation_degrees<class_Environment_property_background_sky_rotation_degrees>` | Vector3( 0, 0, 0 ) |
  61. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  62. | :ref:`float<class_float>` | :ref:`dof_blur_far_amount<class_Environment_property_dof_blur_far_amount>` | 0.1 |
  63. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  64. | :ref:`float<class_float>` | :ref:`dof_blur_far_distance<class_Environment_property_dof_blur_far_distance>` | 10.0 |
  65. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  66. | :ref:`bool<class_bool>` | :ref:`dof_blur_far_enabled<class_Environment_property_dof_blur_far_enabled>` | false |
  67. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  68. | :ref:`DOFBlurQuality<enum_Environment_DOFBlurQuality>` | :ref:`dof_blur_far_quality<class_Environment_property_dof_blur_far_quality>` | 1 |
  69. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  70. | :ref:`float<class_float>` | :ref:`dof_blur_far_transition<class_Environment_property_dof_blur_far_transition>` | 5.0 |
  71. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  72. | :ref:`float<class_float>` | :ref:`dof_blur_near_amount<class_Environment_property_dof_blur_near_amount>` | 0.1 |
  73. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  74. | :ref:`float<class_float>` | :ref:`dof_blur_near_distance<class_Environment_property_dof_blur_near_distance>` | 2.0 |
  75. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  76. | :ref:`bool<class_bool>` | :ref:`dof_blur_near_enabled<class_Environment_property_dof_blur_near_enabled>` | false |
  77. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  78. | :ref:`DOFBlurQuality<enum_Environment_DOFBlurQuality>` | :ref:`dof_blur_near_quality<class_Environment_property_dof_blur_near_quality>` | 1 |
  79. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  80. | :ref:`float<class_float>` | :ref:`dof_blur_near_transition<class_Environment_property_dof_blur_near_transition>` | 1.0 |
  81. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  82. | :ref:`Color<class_Color>` | :ref:`fog_color<class_Environment_property_fog_color>` | Color( 0.5, 0.6, 0.7, 1 ) |
  83. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  84. | :ref:`float<class_float>` | :ref:`fog_depth_begin<class_Environment_property_fog_depth_begin>` | 10.0 |
  85. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  86. | :ref:`float<class_float>` | :ref:`fog_depth_curve<class_Environment_property_fog_depth_curve>` | 1.0 |
  87. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  88. | :ref:`bool<class_bool>` | :ref:`fog_depth_enabled<class_Environment_property_fog_depth_enabled>` | true |
  89. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  90. | :ref:`float<class_float>` | :ref:`fog_depth_end<class_Environment_property_fog_depth_end>` | 0.0 |
  91. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  92. | :ref:`bool<class_bool>` | :ref:`fog_enabled<class_Environment_property_fog_enabled>` | false |
  93. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  94. | :ref:`float<class_float>` | :ref:`fog_height_curve<class_Environment_property_fog_height_curve>` | 1.0 |
  95. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  96. | :ref:`bool<class_bool>` | :ref:`fog_height_enabled<class_Environment_property_fog_height_enabled>` | false |
  97. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  98. | :ref:`float<class_float>` | :ref:`fog_height_max<class_Environment_property_fog_height_max>` | 100.0 |
  99. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  100. | :ref:`float<class_float>` | :ref:`fog_height_min<class_Environment_property_fog_height_min>` | 0.0 |
  101. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  102. | :ref:`float<class_float>` | :ref:`fog_sun_amount<class_Environment_property_fog_sun_amount>` | 0.0 |
  103. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  104. | :ref:`Color<class_Color>` | :ref:`fog_sun_color<class_Environment_property_fog_sun_color>` | Color( 1, 0.9, 0.7, 1 ) |
  105. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  106. | :ref:`float<class_float>` | :ref:`fog_transmit_curve<class_Environment_property_fog_transmit_curve>` | 1.0 |
  107. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  108. | :ref:`bool<class_bool>` | :ref:`fog_transmit_enabled<class_Environment_property_fog_transmit_enabled>` | false |
  109. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  110. | :ref:`bool<class_bool>` | :ref:`glow_bicubic_upscale<class_Environment_property_glow_bicubic_upscale>` | false |
  111. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  112. | :ref:`GlowBlendMode<enum_Environment_GlowBlendMode>` | :ref:`glow_blend_mode<class_Environment_property_glow_blend_mode>` | 2 |
  113. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  114. | :ref:`float<class_float>` | :ref:`glow_bloom<class_Environment_property_glow_bloom>` | 0.0 |
  115. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  116. | :ref:`bool<class_bool>` | :ref:`glow_enabled<class_Environment_property_glow_enabled>` | false |
  117. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  118. | :ref:`float<class_float>` | :ref:`glow_hdr_luminance_cap<class_Environment_property_glow_hdr_luminance_cap>` | 12.0 |
  119. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  120. | :ref:`float<class_float>` | :ref:`glow_hdr_scale<class_Environment_property_glow_hdr_scale>` | 2.0 |
  121. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  122. | :ref:`float<class_float>` | :ref:`glow_hdr_threshold<class_Environment_property_glow_hdr_threshold>` | 1.0 |
  123. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  124. | :ref:`float<class_float>` | :ref:`glow_intensity<class_Environment_property_glow_intensity>` | 0.8 |
  125. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  126. | :ref:`bool<class_bool>` | :ref:`glow_levels/1<class_Environment_property_glow_levels/1>` | false |
  127. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  128. | :ref:`bool<class_bool>` | :ref:`glow_levels/2<class_Environment_property_glow_levels/2>` | false |
  129. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  130. | :ref:`bool<class_bool>` | :ref:`glow_levels/3<class_Environment_property_glow_levels/3>` | true |
  131. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  132. | :ref:`bool<class_bool>` | :ref:`glow_levels/4<class_Environment_property_glow_levels/4>` | false |
  133. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  134. | :ref:`bool<class_bool>` | :ref:`glow_levels/5<class_Environment_property_glow_levels/5>` | true |
  135. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  136. | :ref:`bool<class_bool>` | :ref:`glow_levels/6<class_Environment_property_glow_levels/6>` | false |
  137. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  138. | :ref:`bool<class_bool>` | :ref:`glow_levels/7<class_Environment_property_glow_levels/7>` | false |
  139. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  140. | :ref:`float<class_float>` | :ref:`glow_strength<class_Environment_property_glow_strength>` | 1.0 |
  141. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  142. | :ref:`float<class_float>` | :ref:`ss_reflections_depth_tolerance<class_Environment_property_ss_reflections_depth_tolerance>` | 0.2 |
  143. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  144. | :ref:`bool<class_bool>` | :ref:`ss_reflections_enabled<class_Environment_property_ss_reflections_enabled>` | false |
  145. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  146. | :ref:`float<class_float>` | :ref:`ss_reflections_fade_in<class_Environment_property_ss_reflections_fade_in>` | 0.15 |
  147. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  148. | :ref:`float<class_float>` | :ref:`ss_reflections_fade_out<class_Environment_property_ss_reflections_fade_out>` | 2.0 |
  149. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  150. | :ref:`int<class_int>` | :ref:`ss_reflections_max_steps<class_Environment_property_ss_reflections_max_steps>` | 64 |
  151. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  152. | :ref:`bool<class_bool>` | :ref:`ss_reflections_roughness<class_Environment_property_ss_reflections_roughness>` | true |
  153. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  154. | :ref:`float<class_float>` | :ref:`ssao_ao_channel_affect<class_Environment_property_ssao_ao_channel_affect>` | 0.0 |
  155. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  156. | :ref:`float<class_float>` | :ref:`ssao_bias<class_Environment_property_ssao_bias>` | 0.01 |
  157. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  158. | :ref:`SSAOBlur<enum_Environment_SSAOBlur>` | :ref:`ssao_blur<class_Environment_property_ssao_blur>` | 3 |
  159. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  160. | :ref:`Color<class_Color>` | :ref:`ssao_color<class_Environment_property_ssao_color>` | Color( 0, 0, 0, 1 ) |
  161. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  162. | :ref:`float<class_float>` | :ref:`ssao_edge_sharpness<class_Environment_property_ssao_edge_sharpness>` | 4.0 |
  163. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  164. | :ref:`bool<class_bool>` | :ref:`ssao_enabled<class_Environment_property_ssao_enabled>` | false |
  165. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  166. | :ref:`float<class_float>` | :ref:`ssao_intensity<class_Environment_property_ssao_intensity>` | 1.0 |
  167. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  168. | :ref:`float<class_float>` | :ref:`ssao_intensity2<class_Environment_property_ssao_intensity2>` | 1.0 |
  169. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  170. | :ref:`float<class_float>` | :ref:`ssao_light_affect<class_Environment_property_ssao_light_affect>` | 0.0 |
  171. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  172. | :ref:`SSAOQuality<enum_Environment_SSAOQuality>` | :ref:`ssao_quality<class_Environment_property_ssao_quality>` | 1 |
  173. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  174. | :ref:`float<class_float>` | :ref:`ssao_radius<class_Environment_property_ssao_radius>` | 1.0 |
  175. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  176. | :ref:`float<class_float>` | :ref:`ssao_radius2<class_Environment_property_ssao_radius2>` | 0.0 |
  177. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  178. | :ref:`float<class_float>` | :ref:`tonemap_exposure<class_Environment_property_tonemap_exposure>` | 1.0 |
  179. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  180. | :ref:`ToneMapper<enum_Environment_ToneMapper>` | :ref:`tonemap_mode<class_Environment_property_tonemap_mode>` | 0 |
  181. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  182. | :ref:`float<class_float>` | :ref:`tonemap_white<class_Environment_property_tonemap_white>` | 1.0 |
  183. +--------------------------------------------------------+----------------------------------------------------------------------------------------------------+------------------------------------+
  184. Methods
  185. -------
  186. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  187. | :ref:`bool<class_bool>` | :ref:`is_glow_level_enabled<class_Environment_method_is_glow_level_enabled>` **(** :ref:`int<class_int>` idx **)** const |
  188. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  189. | void | :ref:`set_glow_level<class_Environment_method_set_glow_level>` **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` enabled **)** |
  190. +-------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
  191. Enumerations
  192. ------------
  193. .. _enum_Environment_BGMode:
  194. .. _class_Environment_constant_BG_KEEP:
  195. .. _class_Environment_constant_BG_CLEAR_COLOR:
  196. .. _class_Environment_constant_BG_COLOR:
  197. .. _class_Environment_constant_BG_SKY:
  198. .. _class_Environment_constant_BG_COLOR_SKY:
  199. .. _class_Environment_constant_BG_CANVAS:
  200. .. _class_Environment_constant_BG_CAMERA_FEED:
  201. .. _class_Environment_constant_BG_MAX:
  202. enum **BGMode**:
  203. - **BG_KEEP** = **5** --- Keep on screen every pixel drawn in the background.
  204. - **BG_CLEAR_COLOR** = **0** --- Clear the background using the project's clear color.
  205. - **BG_COLOR** = **1** --- Clear the background using a custom clear color.
  206. - **BG_SKY** = **2** --- Display a user-defined sky in the background.
  207. - **BG_COLOR_SKY** = **3** --- Clear the background using a custom clear color and allows defining a sky for shading and reflection.
  208. - **BG_CANVAS** = **4** --- Display a :ref:`CanvasLayer<class_CanvasLayer>` in the background.
  209. - **BG_CAMERA_FEED** = **6** --- Display a camera feed in the background.
  210. - **BG_MAX** = **7** --- Represents the size of the :ref:`BGMode<enum_Environment_BGMode>` enum.
  211. .. _enum_Environment_GlowBlendMode:
  212. .. _class_Environment_constant_GLOW_BLEND_MODE_ADDITIVE:
  213. .. _class_Environment_constant_GLOW_BLEND_MODE_SCREEN:
  214. .. _class_Environment_constant_GLOW_BLEND_MODE_SOFTLIGHT:
  215. .. _class_Environment_constant_GLOW_BLEND_MODE_REPLACE:
  216. enum **GlowBlendMode**:
  217. - **GLOW_BLEND_MODE_ADDITIVE** = **0** --- Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources.
  218. - **GLOW_BLEND_MODE_SCREEN** = **1** --- Screen glow blending mode. Increases brightness, used frequently with bloom.
  219. - **GLOW_BLEND_MODE_SOFTLIGHT** = **2** --- Soft light glow blending mode. Modifies contrast, exposes shadows and highlights, vivid bloom.
  220. - **GLOW_BLEND_MODE_REPLACE** = **3** --- Replace glow blending mode. Replaces all pixels' color by the glow value.
  221. .. _enum_Environment_ToneMapper:
  222. .. _class_Environment_constant_TONE_MAPPER_LINEAR:
  223. .. _class_Environment_constant_TONE_MAPPER_REINHARDT:
  224. .. _class_Environment_constant_TONE_MAPPER_FILMIC:
  225. .. _class_Environment_constant_TONE_MAPPER_ACES:
  226. enum **ToneMapper**:
  227. - **TONE_MAPPER_LINEAR** = **0** --- Linear tonemapper operator. Reads the linear data and performs an exposure adjustment.
  228. - **TONE_MAPPER_REINHARDT** = **1** --- Reinhardt tonemapper operator. Performs a variation on rendered pixels' colors by this formula: ``color = color / (1 + color)``.
  229. - **TONE_MAPPER_FILMIC** = **2** --- Filmic tonemapper operator.
  230. - **TONE_MAPPER_ACES** = **3** --- Academy Color Encoding System tonemapper operator.
  231. .. _enum_Environment_DOFBlurQuality:
  232. .. _class_Environment_constant_DOF_BLUR_QUALITY_LOW:
  233. .. _class_Environment_constant_DOF_BLUR_QUALITY_MEDIUM:
  234. .. _class_Environment_constant_DOF_BLUR_QUALITY_HIGH:
  235. enum **DOFBlurQuality**:
  236. - **DOF_BLUR_QUALITY_LOW** = **0** --- Low depth-of-field blur quality.
  237. - **DOF_BLUR_QUALITY_MEDIUM** = **1** --- Medium depth-of-field blur quality.
  238. - **DOF_BLUR_QUALITY_HIGH** = **2** --- High depth-of-field blur quality.
  239. .. _enum_Environment_SSAOBlur:
  240. .. _class_Environment_constant_SSAO_BLUR_DISABLED:
  241. .. _class_Environment_constant_SSAO_BLUR_1x1:
  242. .. _class_Environment_constant_SSAO_BLUR_2x2:
  243. .. _class_Environment_constant_SSAO_BLUR_3x3:
  244. enum **SSAOBlur**:
  245. - **SSAO_BLUR_DISABLED** = **0**
  246. - **SSAO_BLUR_1x1** = **1**
  247. - **SSAO_BLUR_2x2** = **2**
  248. - **SSAO_BLUR_3x3** = **3**
  249. .. _enum_Environment_SSAOQuality:
  250. .. _class_Environment_constant_SSAO_QUALITY_LOW:
  251. .. _class_Environment_constant_SSAO_QUALITY_MEDIUM:
  252. .. _class_Environment_constant_SSAO_QUALITY_HIGH:
  253. enum **SSAOQuality**:
  254. - **SSAO_QUALITY_LOW** = **0**
  255. - **SSAO_QUALITY_MEDIUM** = **1**
  256. - **SSAO_QUALITY_HIGH** = **2**
  257. Description
  258. -----------
  259. 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:
  260. - Depth of Field Blur
  261. - Glow
  262. - Tonemap (Auto Exposure)
  263. - Adjustments
  264. Tutorials
  265. ---------
  266. - :doc:`../tutorials/3d/environment_and_post_processing`
  267. - :doc:`../tutorials/3d/high_dynamic_range`
  268. Property Descriptions
  269. ---------------------
  270. .. _class_Environment_property_adjustment_brightness:
  271. - :ref:`float<class_float>` **adjustment_brightness**
  272. +-----------+----------------------------------+
  273. | *Default* | 1.0 |
  274. +-----------+----------------------------------+
  275. | *Setter* | set_adjustment_brightness(value) |
  276. +-----------+----------------------------------+
  277. | *Getter* | get_adjustment_brightness() |
  278. +-----------+----------------------------------+
  279. Global brightness value of the rendered scene (default value is 1).
  280. .. _class_Environment_property_adjustment_color_correction:
  281. - :ref:`Texture<class_Texture>` **adjustment_color_correction**
  282. +----------+----------------------------------------+
  283. | *Setter* | set_adjustment_color_correction(value) |
  284. +----------+----------------------------------------+
  285. | *Getter* | get_adjustment_color_correction() |
  286. +----------+----------------------------------------+
  287. Applies the provided :ref:`Texture<class_Texture>` resource to affect the global color aspect of the rendered scene.
  288. .. _class_Environment_property_adjustment_contrast:
  289. - :ref:`float<class_float>` **adjustment_contrast**
  290. +-----------+--------------------------------+
  291. | *Default* | 1.0 |
  292. +-----------+--------------------------------+
  293. | *Setter* | set_adjustment_contrast(value) |
  294. +-----------+--------------------------------+
  295. | *Getter* | get_adjustment_contrast() |
  296. +-----------+--------------------------------+
  297. Global contrast value of the rendered scene (default value is 1).
  298. .. _class_Environment_property_adjustment_enabled:
  299. - :ref:`bool<class_bool>` **adjustment_enabled**
  300. +-----------+------------------------------+
  301. | *Default* | false |
  302. +-----------+------------------------------+
  303. | *Setter* | set_adjustment_enable(value) |
  304. +-----------+------------------------------+
  305. | *Getter* | is_adjustment_enabled() |
  306. +-----------+------------------------------+
  307. Enables the adjustment\_\* options provided by this resource. If ``false``, adjustments modifications will have no effect on the rendered scene.
  308. .. _class_Environment_property_adjustment_saturation:
  309. - :ref:`float<class_float>` **adjustment_saturation**
  310. +-----------+----------------------------------+
  311. | *Default* | 1.0 |
  312. +-----------+----------------------------------+
  313. | *Setter* | set_adjustment_saturation(value) |
  314. +-----------+----------------------------------+
  315. | *Getter* | get_adjustment_saturation() |
  316. +-----------+----------------------------------+
  317. Global color saturation value of the rendered scene (default value is 1).
  318. .. _class_Environment_property_ambient_light_color:
  319. - :ref:`Color<class_Color>` **ambient_light_color**
  320. +-----------+--------------------------------+
  321. | *Default* | Color( 0, 0, 0, 1 ) |
  322. +-----------+--------------------------------+
  323. | *Setter* | set_ambient_light_color(value) |
  324. +-----------+--------------------------------+
  325. | *Getter* | get_ambient_light_color() |
  326. +-----------+--------------------------------+
  327. :ref:`Color<class_Color>` of the ambient light.
  328. .. _class_Environment_property_ambient_light_energy:
  329. - :ref:`float<class_float>` **ambient_light_energy**
  330. +-----------+---------------------------------+
  331. | *Default* | 1.0 |
  332. +-----------+---------------------------------+
  333. | *Setter* | set_ambient_light_energy(value) |
  334. +-----------+---------------------------------+
  335. | *Getter* | get_ambient_light_energy() |
  336. +-----------+---------------------------------+
  337. Energy of the ambient light. The higher the value, the stronger the light.
  338. .. _class_Environment_property_ambient_light_sky_contribution:
  339. - :ref:`float<class_float>` **ambient_light_sky_contribution**
  340. +-----------+-------------------------------------------+
  341. | *Default* | 1.0 |
  342. +-----------+-------------------------------------------+
  343. | *Setter* | set_ambient_light_sky_contribution(value) |
  344. +-----------+-------------------------------------------+
  345. | *Getter* | get_ambient_light_sky_contribution() |
  346. +-----------+-------------------------------------------+
  347. 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.
  348. .. _class_Environment_property_auto_exposure_enabled:
  349. - :ref:`bool<class_bool>` **auto_exposure_enabled**
  350. +-----------+----------------------------------+
  351. | *Default* | false |
  352. +-----------+----------------------------------+
  353. | *Setter* | set_tonemap_auto_exposure(value) |
  354. +-----------+----------------------------------+
  355. | *Getter* | get_tonemap_auto_exposure() |
  356. +-----------+----------------------------------+
  357. 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.
  358. .. _class_Environment_property_auto_exposure_max_luma:
  359. - :ref:`float<class_float>` **auto_exposure_max_luma**
  360. +-----------+--------------------------------------+
  361. | *Default* | 8.0 |
  362. +-----------+--------------------------------------+
  363. | *Setter* | set_tonemap_auto_exposure_max(value) |
  364. +-----------+--------------------------------------+
  365. | *Getter* | get_tonemap_auto_exposure_max() |
  366. +-----------+--------------------------------------+
  367. Maximum luminance value for the auto exposure.
  368. .. _class_Environment_property_auto_exposure_min_luma:
  369. - :ref:`float<class_float>` **auto_exposure_min_luma**
  370. +-----------+--------------------------------------+
  371. | *Default* | 0.05 |
  372. +-----------+--------------------------------------+
  373. | *Setter* | set_tonemap_auto_exposure_min(value) |
  374. +-----------+--------------------------------------+
  375. | *Getter* | get_tonemap_auto_exposure_min() |
  376. +-----------+--------------------------------------+
  377. Minimum luminance value for the auto exposure.
  378. .. _class_Environment_property_auto_exposure_scale:
  379. - :ref:`float<class_float>` **auto_exposure_scale**
  380. +-----------+---------------------------------------+
  381. | *Default* | 0.4 |
  382. +-----------+---------------------------------------+
  383. | *Setter* | set_tonemap_auto_exposure_grey(value) |
  384. +-----------+---------------------------------------+
  385. | *Getter* | get_tonemap_auto_exposure_grey() |
  386. +-----------+---------------------------------------+
  387. Scale of the auto exposure effect. Affects the intensity of auto exposure.
  388. .. _class_Environment_property_auto_exposure_speed:
  389. - :ref:`float<class_float>` **auto_exposure_speed**
  390. +-----------+----------------------------------------+
  391. | *Default* | 0.5 |
  392. +-----------+----------------------------------------+
  393. | *Setter* | set_tonemap_auto_exposure_speed(value) |
  394. +-----------+----------------------------------------+
  395. | *Getter* | get_tonemap_auto_exposure_speed() |
  396. +-----------+----------------------------------------+
  397. Speed of the auto exposure effect. Affects the time needed for the camera to perform auto exposure.
  398. .. _class_Environment_property_background_camera_feed_id:
  399. - :ref:`int<class_int>` **background_camera_feed_id**
  400. +-----------+---------------------------+
  401. | *Default* | 1 |
  402. +-----------+---------------------------+
  403. | *Setter* | set_camera_feed_id(value) |
  404. +-----------+---------------------------+
  405. | *Getter* | get_camera_feed_id() |
  406. +-----------+---------------------------+
  407. The id of the camera feed to show in the background.
  408. .. _class_Environment_property_background_canvas_max_layer:
  409. - :ref:`int<class_int>` **background_canvas_max_layer**
  410. +-----------+-----------------------------+
  411. | *Default* | 0 |
  412. +-----------+-----------------------------+
  413. | *Setter* | set_canvas_max_layer(value) |
  414. +-----------+-----------------------------+
  415. | *Getter* | get_canvas_max_layer() |
  416. +-----------+-----------------------------+
  417. Maximum layer id (if using Layer background mode).
  418. .. _class_Environment_property_background_color:
  419. - :ref:`Color<class_Color>` **background_color**
  420. +-----------+---------------------+
  421. | *Default* | Color( 0, 0, 0, 1 ) |
  422. +-----------+---------------------+
  423. | *Setter* | set_bg_color(value) |
  424. +-----------+---------------------+
  425. | *Getter* | get_bg_color() |
  426. +-----------+---------------------+
  427. Color displayed for clear areas of the scene (if using Custom color or Color+Sky background modes).
  428. .. _class_Environment_property_background_energy:
  429. - :ref:`float<class_float>` **background_energy**
  430. +-----------+----------------------+
  431. | *Default* | 1.0 |
  432. +-----------+----------------------+
  433. | *Setter* | set_bg_energy(value) |
  434. +-----------+----------------------+
  435. | *Getter* | get_bg_energy() |
  436. +-----------+----------------------+
  437. Power of light emitted by the background.
  438. .. _class_Environment_property_background_mode:
  439. - :ref:`BGMode<enum_Environment_BGMode>` **background_mode**
  440. +-----------+-----------------------+
  441. | *Default* | 0 |
  442. +-----------+-----------------------+
  443. | *Setter* | set_background(value) |
  444. +-----------+-----------------------+
  445. | *Getter* | get_background() |
  446. +-----------+-----------------------+
  447. Defines the mode of background.
  448. .. _class_Environment_property_background_sky:
  449. - :ref:`Sky<class_Sky>` **background_sky**
  450. +----------+----------------+
  451. | *Setter* | set_sky(value) |
  452. +----------+----------------+
  453. | *Getter* | get_sky() |
  454. +----------+----------------+
  455. :ref:`Sky<class_Sky>` resource defined as background.
  456. .. _class_Environment_property_background_sky_custom_fov:
  457. - :ref:`float<class_float>` **background_sky_custom_fov**
  458. +-----------+---------------------------+
  459. | *Default* | 0.0 |
  460. +-----------+---------------------------+
  461. | *Setter* | set_sky_custom_fov(value) |
  462. +-----------+---------------------------+
  463. | *Getter* | get_sky_custom_fov() |
  464. +-----------+---------------------------+
  465. :ref:`Sky<class_Sky>` resource's custom field of view.
  466. .. _class_Environment_property_background_sky_orientation:
  467. - :ref:`Basis<class_Basis>` **background_sky_orientation**
  468. +-----------+------------------------------------+
  469. | *Default* | Basis( 1, 0, 0, 0, 1, 0, 0, 0, 1 ) |
  470. +-----------+------------------------------------+
  471. | *Setter* | set_sky_orientation(value) |
  472. +-----------+------------------------------------+
  473. | *Getter* | get_sky_orientation() |
  474. +-----------+------------------------------------+
  475. :ref:`Sky<class_Sky>` resource's rotation expressed as a :ref:`Basis<class_Basis>`
  476. .. _class_Environment_property_background_sky_rotation:
  477. - :ref:`Vector3<class_Vector3>` **background_sky_rotation**
  478. +-----------+-------------------------+
  479. | *Default* | Vector3( 0, 0, 0 ) |
  480. +-----------+-------------------------+
  481. | *Setter* | set_sky_rotation(value) |
  482. +-----------+-------------------------+
  483. | *Getter* | get_sky_rotation() |
  484. +-----------+-------------------------+
  485. :ref:`Sky<class_Sky>` resource's rotation expressed as euler angles in radians
  486. .. _class_Environment_property_background_sky_rotation_degrees:
  487. - :ref:`Vector3<class_Vector3>` **background_sky_rotation_degrees**
  488. +-----------+---------------------------------+
  489. | *Default* | Vector3( 0, 0, 0 ) |
  490. +-----------+---------------------------------+
  491. | *Setter* | set_sky_rotation_degrees(value) |
  492. +-----------+---------------------------------+
  493. | *Getter* | get_sky_rotation_degrees() |
  494. +-----------+---------------------------------+
  495. :ref:`Sky<class_Sky>` resource's rotation expressed as euler angles in degrees
  496. .. _class_Environment_property_dof_blur_far_amount:
  497. - :ref:`float<class_float>` **dof_blur_far_amount**
  498. +-----------+--------------------------------+
  499. | *Default* | 0.1 |
  500. +-----------+--------------------------------+
  501. | *Setter* | set_dof_blur_far_amount(value) |
  502. +-----------+--------------------------------+
  503. | *Getter* | get_dof_blur_far_amount() |
  504. +-----------+--------------------------------+
  505. Amount of far blur.
  506. .. _class_Environment_property_dof_blur_far_distance:
  507. - :ref:`float<class_float>` **dof_blur_far_distance**
  508. +-----------+----------------------------------+
  509. | *Default* | 10.0 |
  510. +-----------+----------------------------------+
  511. | *Setter* | set_dof_blur_far_distance(value) |
  512. +-----------+----------------------------------+
  513. | *Getter* | get_dof_blur_far_distance() |
  514. +-----------+----------------------------------+
  515. Distance from the camera where the far blur effect affects the rendering.
  516. .. _class_Environment_property_dof_blur_far_enabled:
  517. - :ref:`bool<class_bool>` **dof_blur_far_enabled**
  518. +-----------+---------------------------------+
  519. | *Default* | false |
  520. +-----------+---------------------------------+
  521. | *Setter* | set_dof_blur_far_enabled(value) |
  522. +-----------+---------------------------------+
  523. | *Getter* | is_dof_blur_far_enabled() |
  524. +-----------+---------------------------------+
  525. Enables the far blur effect.
  526. .. _class_Environment_property_dof_blur_far_quality:
  527. - :ref:`DOFBlurQuality<enum_Environment_DOFBlurQuality>` **dof_blur_far_quality**
  528. +-----------+---------------------------------+
  529. | *Default* | 1 |
  530. +-----------+---------------------------------+
  531. | *Setter* | set_dof_blur_far_quality(value) |
  532. +-----------+---------------------------------+
  533. | *Getter* | get_dof_blur_far_quality() |
  534. +-----------+---------------------------------+
  535. Quality of the far blur quality.
  536. .. _class_Environment_property_dof_blur_far_transition:
  537. - :ref:`float<class_float>` **dof_blur_far_transition**
  538. +-----------+------------------------------------+
  539. | *Default* | 5.0 |
  540. +-----------+------------------------------------+
  541. | *Setter* | set_dof_blur_far_transition(value) |
  542. +-----------+------------------------------------+
  543. | *Getter* | get_dof_blur_far_transition() |
  544. +-----------+------------------------------------+
  545. Transition between no-blur area and far blur.
  546. .. _class_Environment_property_dof_blur_near_amount:
  547. - :ref:`float<class_float>` **dof_blur_near_amount**
  548. +-----------+---------------------------------+
  549. | *Default* | 0.1 |
  550. +-----------+---------------------------------+
  551. | *Setter* | set_dof_blur_near_amount(value) |
  552. +-----------+---------------------------------+
  553. | *Getter* | get_dof_blur_near_amount() |
  554. +-----------+---------------------------------+
  555. Amount of near blur.
  556. .. _class_Environment_property_dof_blur_near_distance:
  557. - :ref:`float<class_float>` **dof_blur_near_distance**
  558. +-----------+-----------------------------------+
  559. | *Default* | 2.0 |
  560. +-----------+-----------------------------------+
  561. | *Setter* | set_dof_blur_near_distance(value) |
  562. +-----------+-----------------------------------+
  563. | *Getter* | get_dof_blur_near_distance() |
  564. +-----------+-----------------------------------+
  565. Distance from the camera where the near blur effect affects the rendering.
  566. .. _class_Environment_property_dof_blur_near_enabled:
  567. - :ref:`bool<class_bool>` **dof_blur_near_enabled**
  568. +-----------+----------------------------------+
  569. | *Default* | false |
  570. +-----------+----------------------------------+
  571. | *Setter* | set_dof_blur_near_enabled(value) |
  572. +-----------+----------------------------------+
  573. | *Getter* | is_dof_blur_near_enabled() |
  574. +-----------+----------------------------------+
  575. Enables the near blur effect.
  576. .. _class_Environment_property_dof_blur_near_quality:
  577. - :ref:`DOFBlurQuality<enum_Environment_DOFBlurQuality>` **dof_blur_near_quality**
  578. +-----------+----------------------------------+
  579. | *Default* | 1 |
  580. +-----------+----------------------------------+
  581. | *Setter* | set_dof_blur_near_quality(value) |
  582. +-----------+----------------------------------+
  583. | *Getter* | get_dof_blur_near_quality() |
  584. +-----------+----------------------------------+
  585. Quality of the near blur quality.
  586. .. _class_Environment_property_dof_blur_near_transition:
  587. - :ref:`float<class_float>` **dof_blur_near_transition**
  588. +-----------+-------------------------------------+
  589. | *Default* | 1.0 |
  590. +-----------+-------------------------------------+
  591. | *Setter* | set_dof_blur_near_transition(value) |
  592. +-----------+-------------------------------------+
  593. | *Getter* | get_dof_blur_near_transition() |
  594. +-----------+-------------------------------------+
  595. Transition between near blur and no-blur area.
  596. .. _class_Environment_property_fog_color:
  597. - :ref:`Color<class_Color>` **fog_color**
  598. +-----------+---------------------------+
  599. | *Default* | Color( 0.5, 0.6, 0.7, 1 ) |
  600. +-----------+---------------------------+
  601. | *Setter* | set_fog_color(value) |
  602. +-----------+---------------------------+
  603. | *Getter* | get_fog_color() |
  604. +-----------+---------------------------+
  605. Fog's :ref:`Color<class_Color>`.
  606. .. _class_Environment_property_fog_depth_begin:
  607. - :ref:`float<class_float>` **fog_depth_begin**
  608. +-----------+----------------------------+
  609. | *Default* | 10.0 |
  610. +-----------+----------------------------+
  611. | *Setter* | set_fog_depth_begin(value) |
  612. +-----------+----------------------------+
  613. | *Getter* | get_fog_depth_begin() |
  614. +-----------+----------------------------+
  615. Fog's depth starting distance from the camera.
  616. .. _class_Environment_property_fog_depth_curve:
  617. - :ref:`float<class_float>` **fog_depth_curve**
  618. +-----------+----------------------------+
  619. | *Default* | 1.0 |
  620. +-----------+----------------------------+
  621. | *Setter* | set_fog_depth_curve(value) |
  622. +-----------+----------------------------+
  623. | *Getter* | get_fog_depth_curve() |
  624. +-----------+----------------------------+
  625. Value defining the fog depth intensity.
  626. .. _class_Environment_property_fog_depth_enabled:
  627. - :ref:`bool<class_bool>` **fog_depth_enabled**
  628. +-----------+------------------------------+
  629. | *Default* | true |
  630. +-----------+------------------------------+
  631. | *Setter* | set_fog_depth_enabled(value) |
  632. +-----------+------------------------------+
  633. | *Getter* | is_fog_depth_enabled() |
  634. +-----------+------------------------------+
  635. Enables the fog depth.
  636. .. _class_Environment_property_fog_depth_end:
  637. - :ref:`float<class_float>` **fog_depth_end**
  638. +-----------+--------------------------+
  639. | *Default* | 0.0 |
  640. +-----------+--------------------------+
  641. | *Setter* | set_fog_depth_end(value) |
  642. +-----------+--------------------------+
  643. | *Getter* | get_fog_depth_end() |
  644. +-----------+--------------------------+
  645. .. _class_Environment_property_fog_enabled:
  646. - :ref:`bool<class_bool>` **fog_enabled**
  647. +-----------+------------------------+
  648. | *Default* | false |
  649. +-----------+------------------------+
  650. | *Setter* | set_fog_enabled(value) |
  651. +-----------+------------------------+
  652. | *Getter* | is_fog_enabled() |
  653. +-----------+------------------------+
  654. Enables the fog. Needs fog_height_enabled and/or for_depth_enabled to actually display fog.
  655. .. _class_Environment_property_fog_height_curve:
  656. - :ref:`float<class_float>` **fog_height_curve**
  657. +-----------+-----------------------------+
  658. | *Default* | 1.0 |
  659. +-----------+-----------------------------+
  660. | *Setter* | set_fog_height_curve(value) |
  661. +-----------+-----------------------------+
  662. | *Getter* | get_fog_height_curve() |
  663. +-----------+-----------------------------+
  664. Value defining the fog height intensity.
  665. .. _class_Environment_property_fog_height_enabled:
  666. - :ref:`bool<class_bool>` **fog_height_enabled**
  667. +-----------+-------------------------------+
  668. | *Default* | false |
  669. +-----------+-------------------------------+
  670. | *Setter* | set_fog_height_enabled(value) |
  671. +-----------+-------------------------------+
  672. | *Getter* | is_fog_height_enabled() |
  673. +-----------+-------------------------------+
  674. Enables the fog height.
  675. .. _class_Environment_property_fog_height_max:
  676. - :ref:`float<class_float>` **fog_height_max**
  677. +-----------+---------------------------+
  678. | *Default* | 100.0 |
  679. +-----------+---------------------------+
  680. | *Setter* | set_fog_height_max(value) |
  681. +-----------+---------------------------+
  682. | *Getter* | get_fog_height_max() |
  683. +-----------+---------------------------+
  684. Maximum height of fog.
  685. .. _class_Environment_property_fog_height_min:
  686. - :ref:`float<class_float>` **fog_height_min**
  687. +-----------+---------------------------+
  688. | *Default* | 0.0 |
  689. +-----------+---------------------------+
  690. | *Setter* | set_fog_height_min(value) |
  691. +-----------+---------------------------+
  692. | *Getter* | get_fog_height_min() |
  693. +-----------+---------------------------+
  694. Minimum height of fog.
  695. .. _class_Environment_property_fog_sun_amount:
  696. - :ref:`float<class_float>` **fog_sun_amount**
  697. +-----------+---------------------------+
  698. | *Default* | 0.0 |
  699. +-----------+---------------------------+
  700. | *Setter* | set_fog_sun_amount(value) |
  701. +-----------+---------------------------+
  702. | *Getter* | get_fog_sun_amount() |
  703. +-----------+---------------------------+
  704. Amount of sun that affects the fog rendering.
  705. .. _class_Environment_property_fog_sun_color:
  706. - :ref:`Color<class_Color>` **fog_sun_color**
  707. +-----------+--------------------------+
  708. | *Default* | Color( 1, 0.9, 0.7, 1 ) |
  709. +-----------+--------------------------+
  710. | *Setter* | set_fog_sun_color(value) |
  711. +-----------+--------------------------+
  712. | *Getter* | get_fog_sun_color() |
  713. +-----------+--------------------------+
  714. Sun :ref:`Color<class_Color>`.
  715. .. _class_Environment_property_fog_transmit_curve:
  716. - :ref:`float<class_float>` **fog_transmit_curve**
  717. +-----------+-------------------------------+
  718. | *Default* | 1.0 |
  719. +-----------+-------------------------------+
  720. | *Setter* | set_fog_transmit_curve(value) |
  721. +-----------+-------------------------------+
  722. | *Getter* | get_fog_transmit_curve() |
  723. +-----------+-------------------------------+
  724. Amount of light that the fog transmits.
  725. .. _class_Environment_property_fog_transmit_enabled:
  726. - :ref:`bool<class_bool>` **fog_transmit_enabled**
  727. +-----------+---------------------------------+
  728. | *Default* | false |
  729. +-----------+---------------------------------+
  730. | *Setter* | set_fog_transmit_enabled(value) |
  731. +-----------+---------------------------------+
  732. | *Getter* | is_fog_transmit_enabled() |
  733. +-----------+---------------------------------+
  734. Enables fog's light transmission. If enabled, lets reflections light to be transmitted by the fog.
  735. .. _class_Environment_property_glow_bicubic_upscale:
  736. - :ref:`bool<class_bool>` **glow_bicubic_upscale**
  737. +-----------+-----------------------------------+
  738. | *Default* | false |
  739. +-----------+-----------------------------------+
  740. | *Setter* | set_glow_bicubic_upscale(value) |
  741. +-----------+-----------------------------------+
  742. | *Getter* | is_glow_bicubic_upscale_enabled() |
  743. +-----------+-----------------------------------+
  744. .. _class_Environment_property_glow_blend_mode:
  745. - :ref:`GlowBlendMode<enum_Environment_GlowBlendMode>` **glow_blend_mode**
  746. +-----------+----------------------------+
  747. | *Default* | 2 |
  748. +-----------+----------------------------+
  749. | *Setter* | set_glow_blend_mode(value) |
  750. +-----------+----------------------------+
  751. | *Getter* | get_glow_blend_mode() |
  752. +-----------+----------------------------+
  753. Glow blending mode.
  754. .. _class_Environment_property_glow_bloom:
  755. - :ref:`float<class_float>` **glow_bloom**
  756. +-----------+-----------------------+
  757. | *Default* | 0.0 |
  758. +-----------+-----------------------+
  759. | *Setter* | set_glow_bloom(value) |
  760. +-----------+-----------------------+
  761. | *Getter* | get_glow_bloom() |
  762. +-----------+-----------------------+
  763. Bloom value (global glow).
  764. .. _class_Environment_property_glow_enabled:
  765. - :ref:`bool<class_bool>` **glow_enabled**
  766. +-----------+-------------------------+
  767. | *Default* | false |
  768. +-----------+-------------------------+
  769. | *Setter* | set_glow_enabled(value) |
  770. +-----------+-------------------------+
  771. | *Getter* | is_glow_enabled() |
  772. +-----------+-------------------------+
  773. Enables glow rendering.
  774. .. _class_Environment_property_glow_hdr_luminance_cap:
  775. - :ref:`float<class_float>` **glow_hdr_luminance_cap**
  776. +-----------+-----------------------------------+
  777. | *Default* | 12.0 |
  778. +-----------+-----------------------------------+
  779. | *Setter* | set_glow_hdr_luminance_cap(value) |
  780. +-----------+-----------------------------------+
  781. | *Getter* | get_glow_hdr_luminance_cap() |
  782. +-----------+-----------------------------------+
  783. .. _class_Environment_property_glow_hdr_scale:
  784. - :ref:`float<class_float>` **glow_hdr_scale**
  785. +-----------+---------------------------------+
  786. | *Default* | 2.0 |
  787. +-----------+---------------------------------+
  788. | *Setter* | set_glow_hdr_bleed_scale(value) |
  789. +-----------+---------------------------------+
  790. | *Getter* | get_glow_hdr_bleed_scale() |
  791. +-----------+---------------------------------+
  792. Bleed scale of the HDR glow.
  793. .. _class_Environment_property_glow_hdr_threshold:
  794. - :ref:`float<class_float>` **glow_hdr_threshold**
  795. +-----------+-------------------------------------+
  796. | *Default* | 1.0 |
  797. +-----------+-------------------------------------+
  798. | *Setter* | set_glow_hdr_bleed_threshold(value) |
  799. +-----------+-------------------------------------+
  800. | *Getter* | get_glow_hdr_bleed_threshold() |
  801. +-----------+-------------------------------------+
  802. Bleed threshold of the HDR glow.
  803. .. _class_Environment_property_glow_intensity:
  804. - :ref:`float<class_float>` **glow_intensity**
  805. +-----------+---------------------------+
  806. | *Default* | 0.8 |
  807. +-----------+---------------------------+
  808. | *Setter* | set_glow_intensity(value) |
  809. +-----------+---------------------------+
  810. | *Getter* | get_glow_intensity() |
  811. +-----------+---------------------------+
  812. Glow intensity.
  813. .. _class_Environment_property_glow_levels/1:
  814. - :ref:`bool<class_bool>` **glow_levels/1**
  815. +-----------+-------------------------+
  816. | *Default* | false |
  817. +-----------+-------------------------+
  818. | *Setter* | set_glow_level(value) |
  819. +-----------+-------------------------+
  820. | *Getter* | is_glow_level_enabled() |
  821. +-----------+-------------------------+
  822. First level of glow (most local).
  823. .. _class_Environment_property_glow_levels/2:
  824. - :ref:`bool<class_bool>` **glow_levels/2**
  825. +-----------+-------------------------+
  826. | *Default* | false |
  827. +-----------+-------------------------+
  828. | *Setter* | set_glow_level(value) |
  829. +-----------+-------------------------+
  830. | *Getter* | is_glow_level_enabled() |
  831. +-----------+-------------------------+
  832. Second level of glow.
  833. .. _class_Environment_property_glow_levels/3:
  834. - :ref:`bool<class_bool>` **glow_levels/3**
  835. +-----------+-------------------------+
  836. | *Default* | true |
  837. +-----------+-------------------------+
  838. | *Setter* | set_glow_level(value) |
  839. +-----------+-------------------------+
  840. | *Getter* | is_glow_level_enabled() |
  841. +-----------+-------------------------+
  842. Third level of glow.
  843. .. _class_Environment_property_glow_levels/4:
  844. - :ref:`bool<class_bool>` **glow_levels/4**
  845. +-----------+-------------------------+
  846. | *Default* | false |
  847. +-----------+-------------------------+
  848. | *Setter* | set_glow_level(value) |
  849. +-----------+-------------------------+
  850. | *Getter* | is_glow_level_enabled() |
  851. +-----------+-------------------------+
  852. Fourth level of glow.
  853. .. _class_Environment_property_glow_levels/5:
  854. - :ref:`bool<class_bool>` **glow_levels/5**
  855. +-----------+-------------------------+
  856. | *Default* | true |
  857. +-----------+-------------------------+
  858. | *Setter* | set_glow_level(value) |
  859. +-----------+-------------------------+
  860. | *Getter* | is_glow_level_enabled() |
  861. +-----------+-------------------------+
  862. Fifth level of glow.
  863. .. _class_Environment_property_glow_levels/6:
  864. - :ref:`bool<class_bool>` **glow_levels/6**
  865. +-----------+-------------------------+
  866. | *Default* | false |
  867. +-----------+-------------------------+
  868. | *Setter* | set_glow_level(value) |
  869. +-----------+-------------------------+
  870. | *Getter* | is_glow_level_enabled() |
  871. +-----------+-------------------------+
  872. Sixth level of glow.
  873. .. _class_Environment_property_glow_levels/7:
  874. - :ref:`bool<class_bool>` **glow_levels/7**
  875. +-----------+-------------------------+
  876. | *Default* | false |
  877. +-----------+-------------------------+
  878. | *Setter* | set_glow_level(value) |
  879. +-----------+-------------------------+
  880. | *Getter* | is_glow_level_enabled() |
  881. +-----------+-------------------------+
  882. Seventh level of glow (most global).
  883. .. _class_Environment_property_glow_strength:
  884. - :ref:`float<class_float>` **glow_strength**
  885. +-----------+--------------------------+
  886. | *Default* | 1.0 |
  887. +-----------+--------------------------+
  888. | *Setter* | set_glow_strength(value) |
  889. +-----------+--------------------------+
  890. | *Getter* | get_glow_strength() |
  891. +-----------+--------------------------+
  892. Glow strength.
  893. .. _class_Environment_property_ss_reflections_depth_tolerance:
  894. - :ref:`float<class_float>` **ss_reflections_depth_tolerance**
  895. +-----------+--------------------------------+
  896. | *Default* | 0.2 |
  897. +-----------+--------------------------------+
  898. | *Setter* | set_ssr_depth_tolerance(value) |
  899. +-----------+--------------------------------+
  900. | *Getter* | get_ssr_depth_tolerance() |
  901. +-----------+--------------------------------+
  902. .. _class_Environment_property_ss_reflections_enabled:
  903. - :ref:`bool<class_bool>` **ss_reflections_enabled**
  904. +-----------+------------------------+
  905. | *Default* | false |
  906. +-----------+------------------------+
  907. | *Setter* | set_ssr_enabled(value) |
  908. +-----------+------------------------+
  909. | *Getter* | is_ssr_enabled() |
  910. +-----------+------------------------+
  911. .. _class_Environment_property_ss_reflections_fade_in:
  912. - :ref:`float<class_float>` **ss_reflections_fade_in**
  913. +-----------+------------------------+
  914. | *Default* | 0.15 |
  915. +-----------+------------------------+
  916. | *Setter* | set_ssr_fade_in(value) |
  917. +-----------+------------------------+
  918. | *Getter* | get_ssr_fade_in() |
  919. +-----------+------------------------+
  920. .. _class_Environment_property_ss_reflections_fade_out:
  921. - :ref:`float<class_float>` **ss_reflections_fade_out**
  922. +-----------+-------------------------+
  923. | *Default* | 2.0 |
  924. +-----------+-------------------------+
  925. | *Setter* | set_ssr_fade_out(value) |
  926. +-----------+-------------------------+
  927. | *Getter* | get_ssr_fade_out() |
  928. +-----------+-------------------------+
  929. .. _class_Environment_property_ss_reflections_max_steps:
  930. - :ref:`int<class_int>` **ss_reflections_max_steps**
  931. +-----------+--------------------------+
  932. | *Default* | 64 |
  933. +-----------+--------------------------+
  934. | *Setter* | set_ssr_max_steps(value) |
  935. +-----------+--------------------------+
  936. | *Getter* | get_ssr_max_steps() |
  937. +-----------+--------------------------+
  938. .. _class_Environment_property_ss_reflections_roughness:
  939. - :ref:`bool<class_bool>` **ss_reflections_roughness**
  940. +-----------+----------------------+
  941. | *Default* | true |
  942. +-----------+----------------------+
  943. | *Setter* | set_ssr_rough(value) |
  944. +-----------+----------------------+
  945. | *Getter* | is_ssr_rough() |
  946. +-----------+----------------------+
  947. .. _class_Environment_property_ssao_ao_channel_affect:
  948. - :ref:`float<class_float>` **ssao_ao_channel_affect**
  949. +-----------+-----------------------------------+
  950. | *Default* | 0.0 |
  951. +-----------+-----------------------------------+
  952. | *Setter* | set_ssao_ao_channel_affect(value) |
  953. +-----------+-----------------------------------+
  954. | *Getter* | get_ssao_ao_channel_affect() |
  955. +-----------+-----------------------------------+
  956. .. _class_Environment_property_ssao_bias:
  957. - :ref:`float<class_float>` **ssao_bias**
  958. +-----------+----------------------+
  959. | *Default* | 0.01 |
  960. +-----------+----------------------+
  961. | *Setter* | set_ssao_bias(value) |
  962. +-----------+----------------------+
  963. | *Getter* | get_ssao_bias() |
  964. +-----------+----------------------+
  965. .. _class_Environment_property_ssao_blur:
  966. - :ref:`SSAOBlur<enum_Environment_SSAOBlur>` **ssao_blur**
  967. +-----------+----------------------+
  968. | *Default* | 3 |
  969. +-----------+----------------------+
  970. | *Setter* | set_ssao_blur(value) |
  971. +-----------+----------------------+
  972. | *Getter* | get_ssao_blur() |
  973. +-----------+----------------------+
  974. .. _class_Environment_property_ssao_color:
  975. - :ref:`Color<class_Color>` **ssao_color**
  976. +-----------+-----------------------+
  977. | *Default* | Color( 0, 0, 0, 1 ) |
  978. +-----------+-----------------------+
  979. | *Setter* | set_ssao_color(value) |
  980. +-----------+-----------------------+
  981. | *Getter* | get_ssao_color() |
  982. +-----------+-----------------------+
  983. .. _class_Environment_property_ssao_edge_sharpness:
  984. - :ref:`float<class_float>` **ssao_edge_sharpness**
  985. +-----------+--------------------------------+
  986. | *Default* | 4.0 |
  987. +-----------+--------------------------------+
  988. | *Setter* | set_ssao_edge_sharpness(value) |
  989. +-----------+--------------------------------+
  990. | *Getter* | get_ssao_edge_sharpness() |
  991. +-----------+--------------------------------+
  992. .. _class_Environment_property_ssao_enabled:
  993. - :ref:`bool<class_bool>` **ssao_enabled**
  994. +-----------+-------------------------+
  995. | *Default* | false |
  996. +-----------+-------------------------+
  997. | *Setter* | set_ssao_enabled(value) |
  998. +-----------+-------------------------+
  999. | *Getter* | is_ssao_enabled() |
  1000. +-----------+-------------------------+
  1001. .. _class_Environment_property_ssao_intensity:
  1002. - :ref:`float<class_float>` **ssao_intensity**
  1003. +-----------+---------------------------+
  1004. | *Default* | 1.0 |
  1005. +-----------+---------------------------+
  1006. | *Setter* | set_ssao_intensity(value) |
  1007. +-----------+---------------------------+
  1008. | *Getter* | get_ssao_intensity() |
  1009. +-----------+---------------------------+
  1010. .. _class_Environment_property_ssao_intensity2:
  1011. - :ref:`float<class_float>` **ssao_intensity2**
  1012. +-----------+----------------------------+
  1013. | *Default* | 1.0 |
  1014. +-----------+----------------------------+
  1015. | *Setter* | set_ssao_intensity2(value) |
  1016. +-----------+----------------------------+
  1017. | *Getter* | get_ssao_intensity2() |
  1018. +-----------+----------------------------+
  1019. .. _class_Environment_property_ssao_light_affect:
  1020. - :ref:`float<class_float>` **ssao_light_affect**
  1021. +-----------+-------------------------------------+
  1022. | *Default* | 0.0 |
  1023. +-----------+-------------------------------------+
  1024. | *Setter* | set_ssao_direct_light_affect(value) |
  1025. +-----------+-------------------------------------+
  1026. | *Getter* | get_ssao_direct_light_affect() |
  1027. +-----------+-------------------------------------+
  1028. .. _class_Environment_property_ssao_quality:
  1029. - :ref:`SSAOQuality<enum_Environment_SSAOQuality>` **ssao_quality**
  1030. +-----------+-------------------------+
  1031. | *Default* | 1 |
  1032. +-----------+-------------------------+
  1033. | *Setter* | set_ssao_quality(value) |
  1034. +-----------+-------------------------+
  1035. | *Getter* | get_ssao_quality() |
  1036. +-----------+-------------------------+
  1037. .. _class_Environment_property_ssao_radius:
  1038. - :ref:`float<class_float>` **ssao_radius**
  1039. +-----------+------------------------+
  1040. | *Default* | 1.0 |
  1041. +-----------+------------------------+
  1042. | *Setter* | set_ssao_radius(value) |
  1043. +-----------+------------------------+
  1044. | *Getter* | get_ssao_radius() |
  1045. +-----------+------------------------+
  1046. .. _class_Environment_property_ssao_radius2:
  1047. - :ref:`float<class_float>` **ssao_radius2**
  1048. +-----------+-------------------------+
  1049. | *Default* | 0.0 |
  1050. +-----------+-------------------------+
  1051. | *Setter* | set_ssao_radius2(value) |
  1052. +-----------+-------------------------+
  1053. | *Getter* | get_ssao_radius2() |
  1054. +-----------+-------------------------+
  1055. .. _class_Environment_property_tonemap_exposure:
  1056. - :ref:`float<class_float>` **tonemap_exposure**
  1057. +-----------+-----------------------------+
  1058. | *Default* | 1.0 |
  1059. +-----------+-----------------------------+
  1060. | *Setter* | set_tonemap_exposure(value) |
  1061. +-----------+-----------------------------+
  1062. | *Getter* | get_tonemap_exposure() |
  1063. +-----------+-----------------------------+
  1064. Default exposure for tonemap.
  1065. .. _class_Environment_property_tonemap_mode:
  1066. - :ref:`ToneMapper<enum_Environment_ToneMapper>` **tonemap_mode**
  1067. +-----------+-----------------------+
  1068. | *Default* | 0 |
  1069. +-----------+-----------------------+
  1070. | *Setter* | set_tonemapper(value) |
  1071. +-----------+-----------------------+
  1072. | *Getter* | get_tonemapper() |
  1073. +-----------+-----------------------+
  1074. Tonemapping mode.
  1075. .. _class_Environment_property_tonemap_white:
  1076. - :ref:`float<class_float>` **tonemap_white**
  1077. +-----------+--------------------------+
  1078. | *Default* | 1.0 |
  1079. +-----------+--------------------------+
  1080. | *Setter* | set_tonemap_white(value) |
  1081. +-----------+--------------------------+
  1082. | *Getter* | get_tonemap_white() |
  1083. +-----------+--------------------------+
  1084. White reference value for tonemap.
  1085. Method Descriptions
  1086. -------------------
  1087. .. _class_Environment_method_is_glow_level_enabled:
  1088. - :ref:`bool<class_bool>` **is_glow_level_enabled** **(** :ref:`int<class_int>` idx **)** const
  1089. .. _class_Environment_method_set_glow_level:
  1090. - void **set_glow_level** **(** :ref:`int<class_int>` idx, :ref:`bool<class_bool>` enabled **)**