class_environment.rst 76 KB

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