2017-09-13 04:42:36 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-02-01 09:03:48 +08:00
<class name= "Environment" inherits= "Resource" version= "4.0" >
2017-09-13 04:42:36 +08:00
<brief_description >
2017-09-23 19:59:30 +08:00
Resource for environment nodes (like [WorldEnvironment]) that define multiple rendering options.
2017-09-13 04:42:36 +08:00
</brief_description>
<description >
2018-03-14 04:24:17 +08:00
Resource for environment nodes (like [WorldEnvironment]) that define multiple environment operations (such as background [Sky] or [Color], ambient light, fog, depth-of-field...). These parameters affect the final render of the scene. The order of these operations is:
2019-06-22 07:04:47 +08:00
- Depth of Field Blur
- Glow
- Tonemap (Auto Exposure)
2017-09-23 19:59:30 +08:00
- Adjustments
2017-09-13 04:42:36 +08:00
</description>
<tutorials >
2020-08-05 20:43:40 +08:00
<link title= "Environment and post-processing" > https://docs.godotengine.org/en/latest/tutorials/3d/environment_and_post_processing.html</link>
<link title= "Light transport in game engines" > https://docs.godotengine.org/en/latest/tutorials/3d/high_dynamic_range.html</link>
2020-10-01 16:34:47 +08:00
<link title= "3D Material Testers Demo" > https://godotengine.org/asset-library/asset/123</link>
<link title= "2D HDR Demo" > https://godotengine.org/asset-library/asset/110</link>
<link title= "Third Person Shooter Demo" > https://godotengine.org/asset-library/asset/678</link>
2017-09-13 04:42:36 +08:00
</tutorials>
<methods >
2020-09-20 06:02:32 +08:00
<method name= "get_glow_level" qualifiers= "const" >
<return type= "float" >
2019-06-27 22:10:09 +08:00
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
<description >
2020-09-20 06:02:32 +08:00
Returns the intensity of the glow level [code]idx[/code].
2019-06-27 22:10:09 +08:00
</description>
</method>
2020-09-20 06:02:32 +08:00
<method name= "set_glow_level" >
2019-06-27 22:10:09 +08:00
<return type= "void" >
</return>
<argument index= "0" name= "idx" type= "int" >
</argument>
2020-09-20 06:02:32 +08:00
<argument index= "1" name= "intensity" type= "float" >
2019-06-27 22:10:09 +08:00
</argument>
<description >
2020-09-20 06:02:32 +08:00
Sets the intensity of the glow level [code]idx[/code]. A value above [code]0.0[/code] enables the level. Each level relies on the previous level. This means that enabling higher glow levels will slow down the glow effect rendering, even if previous levels aren't enabled.
2019-06-27 22:10:09 +08:00
</description>
</method>
2017-09-13 04:42:36 +08:00
</methods>
<members >
2019-06-29 18:38:01 +08:00
<member name= "adjustment_brightness" type= "float" setter= "set_adjustment_brightness" getter= "get_adjustment_brightness" default= "1.0" >
2020-01-08 00:18:57 +08:00
The global brightness value of the rendered scene. Effective only if [code]adjustment_enabled[/code] is [code]true[/code].
2017-09-13 04:42:36 +08:00
</member>
2020-11-23 09:51:31 +08:00
<member name= "adjustment_color_correction" type= "Texture" setter= "set_adjustment_color_correction" getter= "get_adjustment_color_correction" >
The [Texture2D] or [Texture3D] lookup table (LUT) to use for the built-in post-process color grading. Can use a [GradientTexture] for a 1-dimensional LUT, or a [Texture3D] for a more complex LUT. Effective only if [code]adjustment_enabled[/code] is [code]true[/code].
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "adjustment_contrast" type= "float" setter= "set_adjustment_contrast" getter= "get_adjustment_contrast" default= "1.0" >
2020-01-08 00:18:57 +08:00
The global contrast value of the rendered scene (default value is 1). Effective only if [code]adjustment_enabled[/code] is [code]true[/code].
2017-09-13 04:42:36 +08:00
</member>
2020-07-01 20:18:13 +08:00
<member name= "adjustment_enabled" type= "bool" setter= "set_adjustment_enabled" getter= "is_adjustment_enabled" default= "false" >
2020-01-08 00:18:57 +08:00
If [code]true[/code], enables the [code]adjustment_*[/code] properties provided by this resource. If [code]false[/code], modifications to the [code]adjustment_*[/code] properties will have no effect on the rendered scene.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "adjustment_saturation" type= "float" setter= "set_adjustment_saturation" getter= "get_adjustment_saturation" default= "1.0" >
2020-01-08 00:18:57 +08:00
The global color saturation value of the rendered scene (default value is 1). Effective only if [code]adjustment_enabled[/code] is [code]true[/code].
2017-09-13 04:42:36 +08:00
</member>
2019-09-25 01:45:03 +08:00
<member name= "ambient_light_color" type= "Color" setter= "set_ambient_light_color" getter= "get_ambient_light_color" default= "Color(0, 0, 0, 1)" >
2020-01-08 00:18:57 +08:00
The ambient light's [Color].
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "ambient_light_energy" type= "float" setter= "set_ambient_light_energy" getter= "get_ambient_light_energy" default= "1.0" >
2020-01-08 00:18:57 +08:00
The ambient light's energy. The higher the value, the stronger the light.
2017-09-13 04:42:36 +08:00
</member>
2019-09-25 01:45:03 +08:00
<member name= "ambient_light_occlusion_color" type= "Color" setter= "set_ao_color" getter= "get_ao_color" default= "Color(0, 0, 0, 1)" >
2020-02-12 16:59:06 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "ambient_light_sky_contribution" type= "float" setter= "set_ambient_light_sky_contribution" getter= "get_ambient_light_sky_contribution" default= "1.0" >
2017-09-23 19:59:30 +08:00
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.
2017-09-13 04:42:36 +08:00
</member>
2020-02-12 16:59:06 +08:00
<member name= "ambient_light_source" type= "int" setter= "set_ambient_source" getter= "get_ambient_source" enum= "Environment.AmbientSource" default= "0" >
</member>
2020-07-01 20:18:13 +08:00
<member name= "auto_exposure_enabled" type= "bool" setter= "set_tonemap_auto_exposure_enabled" getter= "is_tonemap_auto_exposure_enabled" default= "false" >
2020-01-08 00:18:57 +08:00
If [code]true[/code], enables the tonemapping auto exposure mode of the scene renderer. If [code]true[/code], the renderer will automatically determine the exposure setting to adapt to the scene's illumination and the observed light.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "auto_exposure_max_luma" type= "float" setter= "set_tonemap_auto_exposure_max" getter= "get_tonemap_auto_exposure_max" default= "8.0" >
2020-01-08 00:18:57 +08:00
The maximum luminance value for the auto exposure.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "auto_exposure_min_luma" type= "float" setter= "set_tonemap_auto_exposure_min" getter= "get_tonemap_auto_exposure_min" default= "0.05" >
2020-01-08 00:18:57 +08:00
The minimum luminance value for the auto exposure.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "auto_exposure_scale" type= "float" setter= "set_tonemap_auto_exposure_grey" getter= "get_tonemap_auto_exposure_grey" default= "0.4" >
2020-01-08 00:18:57 +08:00
The scale of the auto exposure effect. Affects the intensity of auto exposure.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "auto_exposure_speed" type= "float" setter= "set_tonemap_auto_exposure_speed" getter= "get_tonemap_auto_exposure_speed" default= "0.5" >
2020-01-08 00:18:57 +08:00
The speed of the auto exposure effect. Affects the time needed for the camera to perform auto exposure.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "background_camera_feed_id" type= "int" setter= "set_camera_feed_id" getter= "get_camera_feed_id" default= "1" >
2020-01-08 00:18:57 +08:00
The ID of the camera feed to show in the background.
2017-08-20 22:17:24 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "background_canvas_max_layer" type= "int" setter= "set_canvas_max_layer" getter= "get_canvas_max_layer" default= "0" >
2020-01-08 00:18:57 +08:00
The maximum layer ID to display. Only effective when using the [constant BG_CANVAS] background mode.
2017-09-13 04:42:36 +08:00
</member>
2019-09-25 01:45:03 +08:00
<member name= "background_color" type= "Color" setter= "set_bg_color" getter= "get_bg_color" default= "Color(0, 0, 0, 1)" >
2020-02-12 16:59:06 +08:00
The [Color] displayed for clear areas of the scene. Only effective when using the [constant BG_COLOR] background mode.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "background_energy" type= "float" setter= "set_bg_energy" getter= "get_bg_energy" default= "1.0" >
2020-01-08 00:18:57 +08:00
The power of the light emitted by the background.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "background_mode" type= "int" setter= "set_background" getter= "get_background" enum= "Environment.BGMode" default= "0" >
2020-01-08 00:18:57 +08:00
The background mode. See [enum BGMode] for possible values.
2017-09-13 04:42:36 +08:00
</member>
2020-08-21 13:48:04 +08:00
<member name= "fog_aerial_perspective" type= "float" setter= "set_fog_aerial_perspective" getter= "get_fog_aerial_perspective" default= "0.0" >
Blend factor between the fog's color and the color of the background [Sky]. Must have [member background_mode] set to [constant BG_SKY].
This is useful to simulate [url=https://en.wikipedia.org/wiki/Aerial_perspective]aerial perspective[/url] in large scenes with low density fog. However, it is not very useful for high-density fog, as the sky will shine through. When set to [code]1.0[/code], the fog color comes completely from the [Sky]. If set to [code]0.0[/code], aerial perspective is disabled.
</member>
2020-08-31 17:25:11 +08:00
<member name= "fog_density" type= "float" setter= "set_fog_density" getter= "get_fog_density" default= "0.001" >
2018-11-20 16:34:45 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "fog_enabled" type= "bool" setter= "set_fog_enabled" getter= "is_fog_enabled" default= "false" >
2020-08-31 17:25:11 +08:00
If [code]true[/code], fog effects are enabled.
2017-09-13 04:42:36 +08:00
</member>
2020-08-31 17:25:11 +08:00
<member name= "fog_height" type= "float" setter= "set_fog_height" getter= "get_fog_height" default= "0.0" >
2017-09-13 04:42:36 +08:00
</member>
2020-08-31 17:25:11 +08:00
<member name= "fog_height_density" type= "float" setter= "set_fog_height_density" getter= "get_fog_height_density" default= "0.0" >
2017-09-13 04:42:36 +08:00
</member>
2019-09-25 01:45:03 +08:00
<member name= "fog_light_color" type= "Color" setter= "set_fog_light_color" getter= "get_fog_light_color" default= "Color(0.5, 0.6, 0.7, 1)" >
2017-09-13 04:42:36 +08:00
</member>
2020-08-31 17:25:11 +08:00
<member name= "fog_light_energy" type= "float" setter= "set_fog_light_energy" getter= "get_fog_light_energy" default= "1.0" >
2017-09-13 04:42:36 +08:00
</member>
2020-08-31 17:25:11 +08:00
<member name= "fog_sun_scatter" type= "float" setter= "set_fog_sun_scatter" getter= "get_fog_sun_scatter" default= "0.0" >
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "glow_blend_mode" type= "int" setter= "set_glow_blend_mode" getter= "get_glow_blend_mode" enum= "Environment.GlowBlendMode" default= "2" >
2020-01-08 00:18:57 +08:00
The glow blending mode.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "glow_bloom" type= "float" setter= "set_glow_bloom" getter= "get_glow_bloom" default= "0.0" >
2020-01-08 00:18:57 +08:00
The bloom's intensity. If set to a value higher than [code]0[/code], this will make glow visible in areas darker than the [member glow_hdr_threshold].
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "glow_enabled" type= "bool" setter= "set_glow_enabled" getter= "is_glow_enabled" default= "false" >
2020-01-08 00:18:57 +08:00
If [code]true[/code], the glow effect is enabled.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "glow_hdr_luminance_cap" type= "float" setter= "set_glow_hdr_luminance_cap" getter= "get_glow_hdr_luminance_cap" default= "12.0" >
2020-01-08 00:18:57 +08:00
The higher threshold of the HDR glow. Areas brighter than this threshold will be clamped for the purposes of the glow effect.
2018-12-05 04:57:07 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "glow_hdr_scale" type= "float" setter= "set_glow_hdr_bleed_scale" getter= "get_glow_hdr_bleed_scale" default= "2.0" >
2020-01-08 00:18:57 +08:00
The bleed scale of the HDR glow.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "glow_hdr_threshold" type= "float" setter= "set_glow_hdr_bleed_threshold" getter= "get_glow_hdr_bleed_threshold" default= "1.0" >
2020-01-08 00:18:57 +08:00
The lower threshold of the HDR glow. When using the GLES2 renderer (which doesn't support HDR), this needs to be below [code]1.0[/code] for glow to be visible. A value of [code]0.9[/code] works well in this case.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "glow_intensity" type= "float" setter= "set_glow_intensity" getter= "get_glow_intensity" default= "0.8" >
2020-09-20 06:02:32 +08:00
The overall brightness multiplier of the glow effect. When using the GLES2 renderer, this should be increased to 1.5 to compensate for the lack of HDR rendering.
2017-09-13 04:42:36 +08:00
</member>
2020-09-20 06:02:32 +08:00
<member name= "glow_levels/1" type= "float" setter= "set_glow_level" getter= "get_glow_level" default= "0.0" >
The intensity of the 1st level of glow. This is the most "local" level (least blurry).
2017-09-13 04:42:36 +08:00
</member>
2020-09-20 06:02:32 +08:00
<member name= "glow_levels/2" type= "float" setter= "set_glow_level" getter= "get_glow_level" default= "0.0" >
The intensity of the 2nd level of glow.
2017-09-13 04:42:36 +08:00
</member>
2020-09-20 06:02:32 +08:00
<member name= "glow_levels/3" type= "float" setter= "set_glow_level" getter= "get_glow_level" default= "1.0" >
The intensity of the 3rd level of glow.
2017-09-13 04:42:36 +08:00
</member>
2020-09-20 06:02:32 +08:00
<member name= "glow_levels/4" type= "float" setter= "set_glow_level" getter= "get_glow_level" default= "0.0" >
The intensity of the 4th level of glow.
2017-09-13 04:42:36 +08:00
</member>
2020-09-20 06:02:32 +08:00
<member name= "glow_levels/5" type= "float" setter= "set_glow_level" getter= "get_glow_level" default= "1.0" >
The intensity of the 5th level of glow.
2017-09-13 04:42:36 +08:00
</member>
2020-09-20 06:02:32 +08:00
<member name= "glow_levels/6" type= "float" setter= "set_glow_level" getter= "get_glow_level" default= "0.0" >
The intensity of the 6th level of glow.
2017-09-13 04:42:36 +08:00
</member>
2020-09-20 06:02:32 +08:00
<member name= "glow_levels/7" type= "float" setter= "set_glow_level" getter= "get_glow_level" default= "0.0" >
The intensity of the 7th level of glow. This is the most "global" level (blurriest).
2017-09-13 04:42:36 +08:00
</member>
2020-02-12 16:59:06 +08:00
<member name= "glow_mix" type= "float" setter= "set_glow_mix" getter= "get_glow_mix" default= "0.05" >
</member>
2020-09-20 06:02:32 +08:00
<member name= "glow_normalized" type= "bool" setter= "set_glow_normalized" getter= "is_glow_normalized" default= "false" >
If [code]true[/code], glow levels will be normalized so that summed together their intensities equal [code]1.0[/code].
</member>
2019-06-29 18:38:01 +08:00
<member name= "glow_strength" type= "float" setter= "set_glow_strength" getter= "get_glow_strength" default= "1.0" >
2020-09-20 06:02:32 +08:00
The strength of the glow effect. This applies as the glow is blurred across the screen and increases the distance and intensity of the blur. When using the GLES2 renderer, this should be increased to 1.3 to compensate for the lack of HDR rendering.
2017-09-13 04:42:36 +08:00
</member>
2020-02-12 16:59:06 +08:00
<member name= "reflected_light_source" type= "int" setter= "set_reflection_source" getter= "get_reflection_source" enum= "Environment.ReflectionSource" default= "0" >
</member>
2021-02-19 20:35:31 +08:00
<member name= "sdfgi_bounce_feedback" type= "float" setter= "set_sdfgi_bounce_feedback" getter= "get_sdfgi_bounce_feedback" default= "0.0" >
</member>
2020-07-01 20:18:13 +08:00
<member name= "sdfgi_cascade0_distance" type= "float" setter= "set_sdfgi_cascade0_distance" getter= "get_sdfgi_cascade0_distance" default= "12.8" >
</member>
<member name= "sdfgi_cascades" type= "int" setter= "set_sdfgi_cascades" getter= "get_sdfgi_cascades" enum= "Environment.SDFGICascades" default= "1" >
</member>
<member name= "sdfgi_enabled" type= "bool" setter= "set_sdfgi_enabled" getter= "is_sdfgi_enabled" default= "false" >
2021-03-28 08:04:23 +08:00
If [code]true[/code], enables signed distance field global illumination.
[b]Note:[/b] Meshes should have sufficiently thick walls to avoid light leaks (avoid one-sided walls). For interior levels, enclose your level geometry in a sufficiently large box and bridge the loops to close the mesh.
2020-07-01 20:18:13 +08:00
</member>
<member name= "sdfgi_energy" type= "float" setter= "set_sdfgi_energy" getter= "get_sdfgi_energy" default= "1.0" >
</member>
<member name= "sdfgi_max_distance" type= "float" setter= "set_sdfgi_max_distance" getter= "get_sdfgi_max_distance" default= "819.2" >
</member>
<member name= "sdfgi_min_cell_size" type= "float" setter= "set_sdfgi_min_cell_size" getter= "get_sdfgi_min_cell_size" default= "0.2" >
</member>
<member name= "sdfgi_normal_bias" type= "float" setter= "set_sdfgi_normal_bias" getter= "get_sdfgi_normal_bias" default= "1.1" >
</member>
<member name= "sdfgi_probe_bias" type= "float" setter= "set_sdfgi_probe_bias" getter= "get_sdfgi_probe_bias" default= "1.1" >
</member>
<member name= "sdfgi_read_sky_light" type= "bool" setter= "set_sdfgi_read_sky_light" getter= "is_sdfgi_reading_sky_light" default= "false" >
</member>
<member name= "sdfgi_use_occlusion" type= "bool" setter= "set_sdfgi_use_occlusion" getter= "is_sdfgi_using_occlusion" default= "false" >
</member>
<member name= "sdfgi_y_scale" type= "int" setter= "set_sdfgi_y_scale" getter= "get_sdfgi_y_scale" enum= "Environment.SDFGIYScale" default= "0" >
</member>
2020-02-12 16:59:06 +08:00
<member name= "sky" type= "Sky" setter= "set_sky" getter= "get_sky" >
2020-03-04 02:21:21 +08:00
The [Sky] resource used for this [Environment].
2020-02-12 16:59:06 +08:00
</member>
<member name= "sky_custom_fov" type= "float" setter= "set_sky_custom_fov" getter= "get_sky_custom_fov" default= "0.0" >
</member>
2019-09-25 01:45:03 +08:00
<member name= "sky_rotation" type= "Vector3" setter= "set_sky_rotation" getter= "get_sky_rotation" default= "Vector3(0, 0, 0)" >
2020-02-12 16:59:06 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "ss_reflections_depth_tolerance" type= "float" setter= "set_ssr_depth_tolerance" getter= "get_ssr_depth_tolerance" default= "0.2" >
2020-01-08 00:18:57 +08:00
The depth tolerance for screen-space reflections.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "ss_reflections_enabled" type= "bool" setter= "set_ssr_enabled" getter= "is_ssr_enabled" default= "false" >
2021-06-05 06:47:26 +08:00
If [code]true[/code], screen-space reflections are enabled. Screen-space reflections are more accurate than reflections from [VoxelGI]s or [ReflectionProbe]s, but are slower and can't reflect surfaces occluded by others.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "ss_reflections_fade_in" type= "float" setter= "set_ssr_fade_in" getter= "get_ssr_fade_in" default= "0.15" >
2020-01-08 00:18:57 +08:00
The fade-in distance for screen-space reflections. Affects the area from the reflected material to the screen-space reflection).
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "ss_reflections_fade_out" type= "float" setter= "set_ssr_fade_out" getter= "get_ssr_fade_out" default= "2.0" >
2020-01-08 00:18:57 +08:00
The fade-out distance for screen-space reflections. Affects the area from the screen-space reflection to the "global" reflection.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "ss_reflections_max_steps" type= "int" setter= "set_ssr_max_steps" getter= "get_ssr_max_steps" default= "64" >
2020-01-08 00:18:57 +08:00
The maximum number of steps for screen-space reflections. Higher values are slower.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "ssao_ao_channel_affect" type= "float" setter= "set_ssao_ao_channel_affect" getter= "get_ssao_ao_channel_affect" default= "0.0" >
2020-01-08 00:18:57 +08:00
The screen-space ambient occlusion intensity on materials that have an AO texture defined. Values higher than [code]0[/code] will make the SSAO effect visible in areas darkened by AO textures.
2018-07-26 17:56:21 +08:00
</member>
2020-12-08 13:37:09 +08:00
<member name= "ssao_detail" type= "float" setter= "set_ssao_detail" getter= "get_ssao_detail" default= "0.5" >
Sets the strength of the additional level of detail for the screen-space ambient occlusion effect. A high value makes the detail pass more prominent, but it may contribute to aliasing in your final image.
2020-10-19 06:27:51 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "ssao_enabled" type= "bool" setter= "set_ssao_enabled" getter= "is_ssao_enabled" default= "false" >
2020-12-08 13:37:09 +08:00
If [code]true[/code], the screen-space ambient occlusion effect is enabled. This darkens objects' corners and cavities to simulate ambient light not reaching the entire object as in real life. This works well for small, dynamic objects, but baked lighting or ambient occlusion textures will do a better job at displaying ambient occlusion on large static objects. Godot uses a form of SSAO called Adaptive Screen Space Ambient Occlusion which is itself a form of Horizon Based Ambient Occlusion.
</member>
<member name= "ssao_horizon" type= "float" setter= "set_ssao_horizon" getter= "get_ssao_horizon" default= "0.06" >
The threshold for considering whether a given point on a surface is occluded or not represented as an angle from the horizon mapped into the [code]0.0-1.0[/code] range. A value of [code]1.0[/code] results in no occlusion.
2017-09-13 04:42:36 +08:00
</member>
2020-12-08 13:37:09 +08:00
<member name= "ssao_intensity" type= "float" setter= "set_ssao_intensity" getter= "get_ssao_intensity" default= "2.0" >
The primary screen-space ambient occlusion intensity. Acts as a multiplier for the screen-space ambient occlusion effect. A higher value results in darker occlusion.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "ssao_light_affect" type= "float" setter= "set_ssao_direct_light_affect" getter= "get_ssao_direct_light_affect" default= "0.0" >
2020-01-08 00:18:57 +08:00
The screen-space ambient occlusion intensity in direct light. In real life, ambient occlusion only applies to indirect light, which means its effects can't be seen in direct light. Values higher than [code]0[/code] will make the SSAO effect visible in direct light.
2017-09-13 04:42:36 +08:00
</member>
2020-12-08 13:37:09 +08:00
<member name= "ssao_power" type= "float" setter= "set_ssao_power" getter= "get_ssao_power" default= "1.5" >
The distribution of occlusion. A higher value results in darker occlusion, similar to [member ssao_intensity], but with a sharper falloff.
</member>
2020-10-19 06:27:51 +08:00
<member name= "ssao_radius" type= "float" setter= "set_ssao_radius" getter= "get_ssao_radius" default= "1.0" >
2020-12-08 13:37:09 +08:00
The distance at which objects can occlude each other when calculating screen-space ambient occlusion. Higher values will result in occlusion over a greater distance at the cost of performance and quality.
</member>
<member name= "ssao_sharpness" type= "float" setter= "set_ssao_sharpness" getter= "get_ssao_sharpness" default= "0.98" >
Sharpness refers to the amount that the screen-space ambient occlusion effect is allowed to blur over the edges of objects. Setting too high will result in aliasing around the edges of objects. Setting too low will make object edges appear blurry.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "tonemap_exposure" type= "float" setter= "set_tonemap_exposure" getter= "get_tonemap_exposure" default= "1.0" >
2020-01-08 00:18:57 +08:00
The default exposure used for tonemapping.
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "tonemap_mode" type= "int" setter= "set_tonemapper" getter= "get_tonemapper" enum= "Environment.ToneMapper" default= "0" >
2020-01-08 00:18:57 +08:00
The tonemapping mode to use. Tonemapping is the process that "converts" HDR values to be suitable for rendering on a LDR display. (Godot doesn't support rendering on HDR displays yet.)
2017-09-13 04:42:36 +08:00
</member>
2019-06-29 18:38:01 +08:00
<member name= "tonemap_white" type= "float" setter= "set_tonemap_white" getter= "get_tonemap_white" default= "1.0" >
2020-01-08 00:18:57 +08:00
The white reference value for tonemapping. Only effective if the [member tonemap_mode] isn't set to [constant TONE_MAPPER_LINEAR].
2017-09-13 04:42:36 +08:00
</member>
2020-08-31 17:25:11 +08:00
<member name= "volumetric_fog_density" type= "float" setter= "set_volumetric_fog_density" getter= "get_volumetric_fog_density" default= "0.01" >
</member>
<member name= "volumetric_fog_detail_spread" type= "float" setter= "set_volumetric_fog_detail_spread" getter= "get_volumetric_fog_detail_spread" default= "2.0" >
</member>
<member name= "volumetric_fog_enabled" type= "bool" setter= "set_volumetric_fog_enabled" getter= "is_volumetric_fog_enabled" default= "false" >
</member>
<member name= "volumetric_fog_gi_inject" type= "float" setter= "set_volumetric_fog_gi_inject" getter= "get_volumetric_fog_gi_inject" default= "0.0" >
</member>
<member name= "volumetric_fog_length" type= "float" setter= "set_volumetric_fog_length" getter= "get_volumetric_fog_length" default= "64.0" >
</member>
2019-09-25 01:45:03 +08:00
<member name= "volumetric_fog_light" type= "Color" setter= "set_volumetric_fog_light" getter= "get_volumetric_fog_light" default= "Color(0, 0, 0, 1)" >
2020-08-31 17:25:11 +08:00
</member>
<member name= "volumetric_fog_light_energy" type= "float" setter= "set_volumetric_fog_light_energy" getter= "get_volumetric_fog_light_energy" default= "1.0" >
</member>
2021-02-08 19:34:28 +08:00
<member name= "volumetric_fog_temporal_reprojection_amount" type= "float" setter= "set_volumetric_fog_temporal_reprojection_amount" getter= "get_volumetric_fog_temporal_reprojection_amount" default= "0.9" >
</member>
<member name= "volumetric_fog_temporal_reprojection_enabled" type= "bool" setter= "set_volumetric_fog_temporal_reprojection_enabled" getter= "is_volumetric_fog_temporal_reprojection_enabled" default= "true" >
2020-08-31 17:25:11 +08:00
</member>
2017-09-13 04:42:36 +08:00
</members>
<constants >
2017-11-25 06:16:30 +08:00
<constant name= "BG_CLEAR_COLOR" value= "0" enum= "BGMode" >
2021-02-19 20:35:31 +08:00
Clears the background using the clear color defined in [member ProjectSettings.rendering/environment/defaults/default_clear_color].
2017-09-13 04:42:36 +08:00
</constant>
2017-11-25 06:16:30 +08:00
<constant name= "BG_COLOR" value= "1" enum= "BGMode" >
2020-01-08 00:18:57 +08:00
Clears the background using a custom clear color.
2017-09-13 04:42:36 +08:00
</constant>
2017-11-25 06:16:30 +08:00
<constant name= "BG_SKY" value= "2" enum= "BGMode" >
2020-01-08 00:18:57 +08:00
Displays a user-defined sky in the background.
2017-09-13 04:42:36 +08:00
</constant>
2020-02-12 16:59:06 +08:00
<constant name= "BG_CANVAS" value= "3" enum= "BGMode" >
2020-01-08 00:18:57 +08:00
Displays a [CanvasLayer] in the background.
2017-09-13 04:42:36 +08:00
</constant>
2020-02-12 16:59:06 +08:00
<constant name= "BG_KEEP" value= "4" enum= "BGMode" >
Keeps on screen every pixel drawn in the background. This is the fastest background mode, but it can only be safely used in fully-interior scenes (no visible sky or sky reflections). If enabled in a scene where the background is visible, "ghost trail" artifacts will be visible when moving the camera.
</constant>
<constant name= "BG_CAMERA_FEED" value= "5" enum= "BGMode" >
2020-01-08 00:18:57 +08:00
Displays a camera feed in the background.
2017-08-20 22:17:24 +08:00
</constant>
2020-02-12 16:59:06 +08:00
<constant name= "BG_MAX" value= "6" enum= "BGMode" >
2019-06-27 17:10:53 +08:00
Represents the size of the [enum BGMode] enum.
2017-09-13 04:42:36 +08:00
</constant>
2020-02-12 16:59:06 +08:00
<constant name= "AMBIENT_SOURCE_BG" value= "0" enum= "AmbientSource" >
2020-04-17 07:05:25 +08:00
Gather ambient light from whichever source is specified as the background.
2020-02-12 16:59:06 +08:00
</constant>
<constant name= "AMBIENT_SOURCE_DISABLED" value= "1" enum= "AmbientSource" >
2020-04-17 07:05:25 +08:00
Disable ambient light.
2020-02-12 16:59:06 +08:00
</constant>
<constant name= "AMBIENT_SOURCE_COLOR" value= "2" enum= "AmbientSource" >
2020-04-17 07:05:25 +08:00
Specify a specific [Color] for ambient light.
2020-02-12 16:59:06 +08:00
</constant>
<constant name= "AMBIENT_SOURCE_SKY" value= "3" enum= "AmbientSource" >
2020-04-17 07:05:25 +08:00
Gather ambient light from the [Sky] regardless of what the background is.
2020-02-12 16:59:06 +08:00
</constant>
<constant name= "REFLECTION_SOURCE_BG" value= "0" enum= "ReflectionSource" >
2020-04-17 07:05:25 +08:00
Use the background for reflections.
2020-02-12 16:59:06 +08:00
</constant>
<constant name= "REFLECTION_SOURCE_DISABLED" value= "1" enum= "ReflectionSource" >
2020-04-17 07:05:25 +08:00
Disable reflections.
2020-02-12 16:59:06 +08:00
</constant>
<constant name= "REFLECTION_SOURCE_SKY" value= "2" enum= "ReflectionSource" >
2020-04-17 07:05:25 +08:00
Use the [Sky] for reflections regardless of what the background is.
2020-02-12 16:59:06 +08:00
</constant>
2020-07-01 20:18:13 +08:00
<constant name= "TONE_MAPPER_LINEAR" value= "0" enum= "ToneMapper" >
Linear tonemapper operator. Reads the linear data and passes it on unmodified.
</constant>
<constant name= "TONE_MAPPER_REINHARDT" value= "1" enum= "ToneMapper" >
Reinhardt tonemapper operator. Performs a variation on rendered pixels' colors by this formula: [code]color = color / (1 + color)[/code].
</constant>
<constant name= "TONE_MAPPER_FILMIC" value= "2" enum= "ToneMapper" >
Filmic tonemapper operator.
</constant>
<constant name= "TONE_MAPPER_ACES" value= "3" enum= "ToneMapper" >
Academy Color Encoding System tonemapper operator.
</constant>
2017-11-25 06:16:30 +08:00
<constant name= "GLOW_BLEND_MODE_ADDITIVE" value= "0" enum= "GlowBlendMode" >
2017-09-23 19:59:30 +08:00
Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources.
2017-09-13 04:42:36 +08:00
</constant>
2017-11-25 06:16:30 +08:00
<constant name= "GLOW_BLEND_MODE_SCREEN" value= "1" enum= "GlowBlendMode" >
2017-09-23 19:59:30 +08:00
Screen glow blending mode. Increases brightness, used frequently with bloom.
2017-09-13 04:42:36 +08:00
</constant>
2017-11-25 06:16:30 +08:00
<constant name= "GLOW_BLEND_MODE_SOFTLIGHT" value= "2" enum= "GlowBlendMode" >
2020-01-08 00:18:57 +08:00
Soft light glow blending mode. Modifies contrast, exposes shadows and highlights (vivid bloom).
2017-09-13 04:42:36 +08:00
</constant>
2017-11-25 06:16:30 +08:00
<constant name= "GLOW_BLEND_MODE_REPLACE" value= "3" enum= "GlowBlendMode" >
2020-01-08 00:18:57 +08:00
Replace glow blending mode. Replaces all pixels' color by the glow value. This can be used to simulate a full-screen blur effect by tweaking the glow parameters to match the original image's brightness.
2017-09-13 04:42:36 +08:00
</constant>
2020-02-12 16:59:06 +08:00
<constant name= "GLOW_BLEND_MODE_MIX" value= "4" enum= "GlowBlendMode" >
2020-04-17 07:05:25 +08:00
Mixes the glow with the underlying color to avoid increasing brightness as much while still maintaining a glow effect.
2020-02-12 16:59:06 +08:00
</constant>
2020-07-01 20:18:13 +08:00
<constant name= "SDFGI_CASCADES_4" value= "0" enum= "SDFGICascades" >
</constant>
<constant name= "SDFGI_CASCADES_6" value= "1" enum= "SDFGICascades" >
</constant>
<constant name= "SDFGI_CASCADES_8" value= "2" enum= "SDFGICascades" >
</constant>
<constant name= "SDFGI_Y_SCALE_DISABLED" value= "0" enum= "SDFGIYScale" >
</constant>
<constant name= "SDFGI_Y_SCALE_75_PERCENT" value= "1" enum= "SDFGIYScale" >
</constant>
<constant name= "SDFGI_Y_SCALE_50_PERCENT" value= "2" enum= "SDFGIYScale" >
</constant>
2020-08-31 17:25:11 +08:00
<constant name= "VOLUMETRIC_FOG_SHADOW_FILTER_DISABLED" value= "0" enum= "VolumetricFogShadowFilter" >
</constant>
<constant name= "VOLUMETRIC_FOG_SHADOW_FILTER_LOW" value= "1" enum= "VolumetricFogShadowFilter" >
</constant>
<constant name= "VOLUMETRIC_FOG_SHADOW_FILTER_MEDIUM" value= "2" enum= "VolumetricFogShadowFilter" >
</constant>
<constant name= "VOLUMETRIC_FOG_SHADOW_FILTER_HIGH" value= "3" enum= "VolumetricFogShadowFilter" >
</constant>
2017-09-13 04:42:36 +08:00
</constants>
</class>