Update many docs with recent rendering changes
This commit is contained in:
parent
5b4ea6529a
commit
b50d954cb0
|
@ -108,6 +108,15 @@
|
|||
<member name="ao_texture_channel" type="int" setter="set_ao_texture_channel" getter="get_ao_texture_channel" enum="BaseMaterial3D.TextureChannel">
|
||||
Specifies the channel of the [member ao_texture] in which the ambient occlusion information is stored. This is useful when you store the information for multiple effects in a single texture. For example if you stored metallic in the red channel, roughness in the blue, and ambient occlusion in the green you could reduce the number of textures you use.
|
||||
</member>
|
||||
<member name="backlight" type="Color" setter="set_backlight" getter="get_backlight">
|
||||
The color used by the backlight effect. Represents the light passing through an object.
|
||||
</member>
|
||||
<member name="backlight_enabled" type="bool" setter="set_feature" getter="get_feature" default="false">
|
||||
If [code]true[/code], the backlight effect is enabled.
|
||||
</member>
|
||||
<member name="backlight_texture" type="Texture2D" setter="set_texture" getter="get_texture">
|
||||
Texture used to control the backlight effect per-pixel. Added to [member backlight].
|
||||
</member>
|
||||
<member name="billboard_keep_scale" type="bool" setter="set_flag" getter="get_flag" default="false">
|
||||
If [code]true[/code], the shader will keep the scale set for the mesh. Otherwise the scale is lost when billboarding. Only applies when [member billboard_mode] is [constant BILLBOARD_ENABLED].
|
||||
</member>
|
||||
|
@ -296,6 +305,7 @@
|
|||
Specifies the channel of the [member ao_texture] in which the ambient occlusion information is stored. This is useful when you store the information for multiple effects in a single texture. For example if you stored metallic in the red channel, roughness in the blue, and ambient occlusion in the green you could reduce the number of textures you use.
|
||||
</member>
|
||||
<member name="shading_mode" type="int" setter="set_shading_mode" getter="get_shading_mode" enum="BaseMaterial3D.ShadingMode" default="1">
|
||||
Sets whether the shading takes place per-pixel or per-vertex. Per-vertex lighting is faster, making it the best choice for mobile applications, however it looks considerably worse than per-pixel.
|
||||
</member>
|
||||
<member name="shadow_to_opacity" type="bool" setter="set_flag" getter="get_flag" default="false">
|
||||
If [code]true[/code], enables the "shadow to opacity" render mode where lighting modifies the alpha so shadowed areas are opaque and non-shadowed areas are transparent. Useful for overlaying shadows onto a camera feed in AR.
|
||||
|
@ -307,6 +317,7 @@
|
|||
If [code]true[/code], subsurface scattering is enabled. Emulates light that penetrates an object's surface, is scattered, and then emerges.
|
||||
</member>
|
||||
<member name="subsurf_scatter_skin_mode" type="bool" setter="set_flag" getter="get_flag">
|
||||
If [code]true[/code], subsurface scattering will use a special mode optimized for the color and density of human skin.
|
||||
</member>
|
||||
<member name="subsurf_scatter_strength" type="float" setter="set_subsurface_scattering_strength" getter="get_subsurface_scattering_strength">
|
||||
The strength of the subsurface scattering effect.
|
||||
|
@ -314,21 +325,24 @@
|
|||
<member name="subsurf_scatter_texture" type="Texture2D" setter="set_texture" getter="get_texture">
|
||||
Texture used to control the subsurface scattering strength. Stored in the red texture channel. Multiplied by [member subsurf_scatter_strength].
|
||||
</member>
|
||||
<member name="subsurf_scatter_transmittance_boost" type="float" setter="set_transmittance_boost" getter="get_transmittance_boost">
|
||||
</member>
|
||||
<member name="subsurf_scatter_transmittance_color" type="Color" setter="set_transmittance_color" getter="get_transmittance_color">
|
||||
</member>
|
||||
<member name="subsurf_scatter_transmittance_curve" type="float" setter="set_transmittance_curve" getter="get_transmittance_curve">
|
||||
</member>
|
||||
<member name="subsurf_scatter_transmittance_depth" type="float" setter="set_transmittance_depth" getter="get_transmittance_depth">
|
||||
</member>
|
||||
<member name="subsurf_scatter_transmittance_enabled" type="bool" setter="set_feature" getter="get_feature">
|
||||
</member>
|
||||
<member name="subsurf_scatter_transmittance_texture" type="Texture2D" setter="set_texture" getter="get_texture">
|
||||
</member>
|
||||
<member name="texture_filter" type="int" setter="set_texture_filter" getter="get_texture_filter" enum="BaseMaterial3D.TextureFilter" default="3">
|
||||
Filter flags for the texture. See [enum TextureFilter] for options.
|
||||
</member>
|
||||
<member name="texture_repeat" type="bool" setter="set_flag" getter="get_flag" default="true">
|
||||
Repeat flags for the texture. See [enum TextureFilter] for options.
|
||||
</member>
|
||||
<member name="transmission" type="Color" setter="set_transmission" getter="get_transmission">
|
||||
The color used by the transmission effect. Represents the light passing through an object.
|
||||
</member>
|
||||
<member name="transmission_enabled" type="bool" setter="set_feature" getter="get_feature" default="false">
|
||||
If [code]true[/code], the transmission effect is enabled.
|
||||
</member>
|
||||
<member name="transmission_texture" type="Texture2D" setter="set_texture" getter="get_texture">
|
||||
Texture used to control the transmission effect per-pixel. Added to [member transmission].
|
||||
</member>
|
||||
<member name="transparency" type="int" setter="set_transparency" getter="get_transparency" enum="BaseMaterial3D.Transparency" default="0">
|
||||
If [code]true[/code], transparency is enabled on the body. See also [member blend_mode].
|
||||
</member>
|
||||
|
@ -407,39 +421,47 @@
|
|||
<constant name="TEXTURE_SUBSURFACE_SCATTERING" value="10" enum="TextureParam">
|
||||
Texture specifying per-pixel subsurface scattering.
|
||||
</constant>
|
||||
<constant name="TEXTURE_TRANSMISSION" value="11" enum="TextureParam">
|
||||
Texture specifying per-pixel transmission color.
|
||||
<constant name="TEXTURE_SUBSURFACE_TRANSMITTANCE" value="11" enum="TextureParam">
|
||||
Texture specifying per-pixel transmittance for subsurface scattering.
|
||||
</constant>
|
||||
<constant name="TEXTURE_REFRACTION" value="12" enum="TextureParam">
|
||||
<constant name="TEXTURE_BACKLIGHT" value="12" enum="TextureParam">
|
||||
Texture specifying per-pixel backlight color.
|
||||
</constant>
|
||||
<constant name="TEXTURE_REFRACTION" value="13" enum="TextureParam">
|
||||
Texture specifying per-pixel refraction strength.
|
||||
</constant>
|
||||
<constant name="TEXTURE_DETAIL_MASK" value="13" enum="TextureParam">
|
||||
<constant name="TEXTURE_DETAIL_MASK" value="14" enum="TextureParam">
|
||||
Texture specifying per-pixel detail mask blending value.
|
||||
</constant>
|
||||
<constant name="TEXTURE_DETAIL_ALBEDO" value="14" enum="TextureParam">
|
||||
<constant name="TEXTURE_DETAIL_ALBEDO" value="15" enum="TextureParam">
|
||||
Texture specifying per-pixel detail color.
|
||||
</constant>
|
||||
<constant name="TEXTURE_DETAIL_NORMAL" value="15" enum="TextureParam">
|
||||
<constant name="TEXTURE_DETAIL_NORMAL" value="16" enum="TextureParam">
|
||||
Texture specifying per-pixel detail normal.
|
||||
</constant>
|
||||
<constant name="TEXTURE_ORM" value="16" enum="TextureParam">
|
||||
<constant name="TEXTURE_ORM" value="17" enum="TextureParam">
|
||||
Texture holding, ambient occlusion, roughness, and metallic.
|
||||
</constant>
|
||||
<constant name="TEXTURE_MAX" value="17" enum="TextureParam">
|
||||
<constant name="TEXTURE_MAX" value="18" enum="TextureParam">
|
||||
Represents the size of the [enum TextureParam] enum.
|
||||
</constant>
|
||||
<constant name="TEXTURE_FILTER_NEAREST" value="0" enum="TextureFilter">
|
||||
The texture filter reads from the nearest pixel only. The simplest and fastest method of filtering, but the texture will look pixelized.
|
||||
</constant>
|
||||
<constant name="TEXTURE_FILTER_LINEAR" value="1" enum="TextureFilter">
|
||||
The texture filter blends between the nearest four pixels. Use this for most cases where you want to avoid a pixelated style.
|
||||
The texture filter blends between the nearest 4 pixels. Use this when you want to avoid a pixelated style, but do not want mipmaps.
|
||||
</constant>
|
||||
<constant name="TEXTURE_FILTER_NEAREST_WITH_MIPMAPS" value="2" enum="TextureFilter">
|
||||
The texture filter reads from the nearest pixel in the nearest mipmap. The fastest way to read from textures with mipmaps.
|
||||
</constant>
|
||||
<constant name="TEXTURE_FILTER_LINEAR_WITH_MIPMAPS" value="3" enum="TextureFilter">
|
||||
The texture filter blends between the nearest 4 pixels and between the nearest 2 mipmaps. Use this for most cases as mipmaps are important to smooth out pixels that are far from the camera.
|
||||
</constant>
|
||||
<constant name="TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC" value="4" enum="TextureFilter">
|
||||
The texture filter reads from the nearest pixel, but selects a mipmap based on the angle between the surface and the camera view. This reduces artifacts on surfaces that are almost in line with the camera.
|
||||
</constant>
|
||||
<constant name="TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC" value="5" enum="TextureFilter">
|
||||
The texture filter blends between the nearest 4 pixels and selects a mipmap based on the angle between the surface and the camera view. This reduces artifacts on surfaces that are almost in line with the camera. This is the slowest of the filtering options, but results in the highest quality texturing.
|
||||
</constant>
|
||||
<constant name="TEXTURE_FILTER_MAX" value="6" enum="TextureFilter">
|
||||
Represents the size of the [enum TextureFilter] enum.
|
||||
|
@ -457,8 +479,10 @@
|
|||
The material will use the texture's alpha values for transparency.
|
||||
</constant>
|
||||
<constant name="TRANSPARENCY_ALPHA_SCISSOR" value="2" enum="Transparency">
|
||||
The material will cut off all values below a threshold, the rest will remain opaque.
|
||||
</constant>
|
||||
<constant name="TRANSPARENCY_ALPHA_DEPTH_PRE_PASS" value="3" enum="Transparency">
|
||||
The material will use the texture's alpha value for transparency, but will still be rendered in the pre-pass.
|
||||
</constant>
|
||||
<constant name="TRANSPARENCY_MAX" value="4" enum="Transparency">
|
||||
Represents the size of the [enum Transparency] enum.
|
||||
|
@ -494,20 +518,24 @@
|
|||
Constant for setting [member ao_enabled].
|
||||
</constant>
|
||||
<constant name="FEATURE_HEIGHT_MAPPING" value="6" enum="Feature">
|
||||
Constant for setting [member heightmap_enabled].
|
||||
</constant>
|
||||
<constant name="FEATURE_SUBSURACE_SCATTERING" value="7" enum="Feature">
|
||||
<constant name="FEATURE_SUBSURFACE_SCATTERING" value="7" enum="Feature">
|
||||
Constant for setting [member subsurf_scatter_enabled].
|
||||
</constant>
|
||||
<constant name="FEATURE_TRANSMISSION" value="8" enum="Feature">
|
||||
Constant for setting [member transmission_enabled].
|
||||
<constant name="FEATURE_SUBSURFACE_TRANSMITTANCE" value="8" enum="Feature">
|
||||
Constant for setting [member subsurf_scatter_transmittance_enabled].
|
||||
</constant>
|
||||
<constant name="FEATURE_REFRACTION" value="9" enum="Feature">
|
||||
<constant name="FEATURE_BACKLIGHT" value="9" enum="Feature">
|
||||
Constant for setting [member backlight_enabled].
|
||||
</constant>
|
||||
<constant name="FEATURE_REFRACTION" value="10" enum="Feature">
|
||||
Constant for setting [member refraction_enabled].
|
||||
</constant>
|
||||
<constant name="FEATURE_DETAIL" value="10" enum="Feature">
|
||||
<constant name="FEATURE_DETAIL" value="11" enum="Feature">
|
||||
Constant for setting [member detail_enabled].
|
||||
</constant>
|
||||
<constant name="FEATURE_MAX" value="11" enum="Feature">
|
||||
<constant name="FEATURE_MAX" value="12" enum="Feature">
|
||||
Represents the size of the [enum Feature] enum.
|
||||
</constant>
|
||||
<constant name="BLEND_MODE_MIX" value="0" enum="BlendMode">
|
||||
|
@ -589,11 +617,13 @@
|
|||
Enables the shadow to opacity feature.
|
||||
</constant>
|
||||
<constant name="FLAG_USE_TEXTURE_REPEAT" value="16" enum="Flags">
|
||||
Enables the texture to repeat when UV coordinates are outside the 0-1 range. If using one of the linear filtering modes, this can result in artifacts at the edges of a texture when the sampler filters across the edges of the texture.
|
||||
</constant>
|
||||
<constant name="FLAG_INVERT_HEIGHTMAP" value="17" enum="Flags">
|
||||
Invert values read from a depth texture to convert them to height values (heightmap).
|
||||
</constant>
|
||||
<constant name="FLAG_SUBSURFACE_MODE_SKIN" value="18" enum="Flags">
|
||||
Enables the skin mode for subsurface scattering which is used to improve the look of subsurface scattering when used for human skin.
|
||||
</constant>
|
||||
<constant name="FLAG_MAX" value="19" enum="Flags">
|
||||
Represents the size of the [enum Flags] enum.
|
||||
|
|
|
@ -0,0 +1,111 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="Decal" inherits="VisualInstance3D" version="4.0">
|
||||
<brief_description>
|
||||
Node that projects a texture onto a [MeshInstance3D].
|
||||
</brief_description>
|
||||
<description>
|
||||
[Decal]s are used to project a texture onto a [Mesh] in the scene. Use Decals to add detail to a scene without affecting the underlying [Mesh]. They are often used to add weathering to building, add dirt or mud to the ground, or add variety to props. Decals can be moved at any time, making them suitable for things like blob shadows or laser sight dots.
|
||||
They are made of an [AABB] and a group of [Texture2D]s specifying [Color], normal, ORM (ambient occlusion, roughness, metallic), and emission. Decals are projected within their [AABB] so altering the orientation of the Decal affects the direction in which they are projected. By default, Decals are projected down (i.e. from positive Y to negative Y).
|
||||
The [Texture2D]s associated with the Decal are automatically stored in a texture atlas which is used for drawing the decals so all decals can be drawn at once. Godot uses clustered decals, meaning they are stored in cluster data and drawn when the mesh is drawn, they are not drawn as a postprocessing effect after.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="get_texture" qualifiers="const">
|
||||
<return type="Texture2D">
|
||||
</return>
|
||||
<argument index="0" name="type" type="int" enum="Decal.DecalTexture">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the [Texture2D] associated with the specified [enum DecalTexture]. This is a convenience method, in most cases you should access the texture directly.
|
||||
For example, instead of [code]albedo_tex = $Decal.get_texture(Decal.TEXTURE_ALBEDO)[/code], use [code]albedo_tex = $Decal.texture_albedo[/code].
|
||||
One case where this is better than accessing the texture directly is when you want to copy one Decal's textures to another. For example:
|
||||
[codeblock]
|
||||
for i in Decal.TEXTURE_MAX:
|
||||
$NewDecal.set_texture(i, $OldDecal.get_texture(i))
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_texture">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="type" type="int" enum="Decal.DecalTexture">
|
||||
</argument>
|
||||
<argument index="1" name="texture" type="Texture2D">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the [Texture2D] associated with the specified [enum DecalTexture]. This is a convenience method, in most cases you should access the texture directly.
|
||||
For example, instead of [code]$Decal.set_texture(Decal.TEXTURE_ALBEDO, albedo_tex)[/code], use [code]$Decal.texture_albedo = albedo_tex[/code].
|
||||
One case where this is better than accessing the texture directly is when you want to copy one Decal's textures to another. For example:
|
||||
[codeblock]
|
||||
for i in Decal.TEXTURE_MAX:
|
||||
$NewDecal.set_texture(i, $OldDecal.get_texture(i))
|
||||
[/codeblock]
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="albedo_mix" type="float" setter="set_albedo_mix" getter="get_albedo_mix" default="1.0">
|
||||
Blends the albedo [Color] of the decal with albedo [Color] of the underlying mesh.
|
||||
</member>
|
||||
<member name="cull_mask" type="int" setter="set_cull_mask" getter="get_cull_mask" default="1048575">
|
||||
Specifies which [member VisualInstance3D.layers] this decal will project on. By default, Decals affect all layers. This is used so you can specify which types of objects receive the Decal and which do not. This is especially useful so you an ensure that dynamic objects don't accidentally receive a Decal intended for the terrain under them.
|
||||
</member>
|
||||
<member name="distance_fade_begin" type="float" setter="set_distance_fade_begin" getter="get_distance_fade_begin" default="10.0">
|
||||
Distance from the camera at which the Decal begins to fade away.
|
||||
</member>
|
||||
<member name="distance_fade_enabled" type="bool" setter="set_enable_distance_fade" getter="is_distance_fade_enabled" default="false">
|
||||
If [code]true[/code], decals will smoothly fade away when far from the active [Camera3D] starting at [member distance_fade_begin]. The Decal will fade out over [member distance_fade_length], after which it will be culled and not sent to the shader at all. Use this to reduce the number of active Decals in a scene and thus improve performance.
|
||||
</member>
|
||||
<member name="distance_fade_length" type="float" setter="set_distance_fade_length" getter="get_distance_fade_length" default="1.0">
|
||||
Distance over which the Decal fades. The Decal becomes slowly more transparent over this distance and is completely invisible at the end.
|
||||
</member>
|
||||
<member name="emission_energy" type="float" setter="set_emission_energy" getter="get_emission_energy" default="1.0">
|
||||
Energy multiplier for the emission texture. This will make the decal emit light at a higher intensity.
|
||||
</member>
|
||||
<member name="extents" type="Vector3" setter="set_extents" getter="get_extents" default="Vector3( 1, 1, 1 )">
|
||||
Sets the size of the [AABB] used by the decal. The AABB goes from [code]-extents[/code] to [code]extents[/code].
|
||||
</member>
|
||||
<member name="lower_fade" type="float" setter="set_lower_fade" getter="get_lower_fade" default="0.3">
|
||||
Sets the curve over which the decal will fade as the surface gets further from the center of the [AABB].
|
||||
</member>
|
||||
<member name="modulate" type="Color" setter="set_modulate" getter="get_modulate" default="Color( 1, 1, 1, 1 )">
|
||||
Changes the [Color] of the Decal by multiplying it with this value.
|
||||
</member>
|
||||
<member name="normal_fade" type="float" setter="set_normal_fade" getter="get_normal_fade" default="0.0">
|
||||
Fades the Decal if the angle between the Decal's [AABB] and the target surface becomes too large. A value of [code]0[/code] projects the Decal regardless of angle, a value of [code]1[/code] limits the Decal to surfaces that are nearly perpendicular.
|
||||
</member>
|
||||
<member name="texture_albedo" type="Texture2D" setter="set_texture" getter="get_texture">
|
||||
[Texture2D] with the base [Color] of the Decal. Either this or the [member texture_emission] must be set for the Decal to be visible. Use the alpha channel like a mask to smoothly blend the edges of the decal with the underlying object.
|
||||
</member>
|
||||
<member name="texture_emission" type="Texture2D" setter="set_texture" getter="get_texture">
|
||||
[Texture2D] with the emission [Color] of the Decal. Either this or the [member texture_emission] must be set for the Decal to be visible. Use the alpha channel like a mask to smoothly blend the edges of the decal with the underlying object.
|
||||
</member>
|
||||
<member name="texture_normal" type="Texture2D" setter="set_texture" getter="get_texture">
|
||||
[Texture2D] with the per-pixel normalmap for the decal. Use this to add extra detail to decals.
|
||||
</member>
|
||||
<member name="texture_orm" type="Texture2D" setter="set_texture" getter="get_texture">
|
||||
[Texture2D] storing ambient occlusion, roughness, and metallic for the decal. Use this to add extra detail to decals.
|
||||
</member>
|
||||
<member name="upper_fade" type="float" setter="set_upper_fade" getter="get_upper_fade" default="0.3">
|
||||
Sets the curve over which the decal will fade as the surface gets further from the center of the [AABB].
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="TEXTURE_ALBEDO" value="0" enum="DecalTexture">
|
||||
[Texture2D] corresponding to [member texture_albedo].
|
||||
</constant>
|
||||
<constant name="TEXTURE_NORMAL" value="1" enum="DecalTexture">
|
||||
[Texture2D] corresponding to [member texture_normal].
|
||||
</constant>
|
||||
<constant name="TEXTURE_ORM" value="2" enum="DecalTexture">
|
||||
[Texture2D] corresponding to [member texture_orm].
|
||||
</constant>
|
||||
<constant name="TEXTURE_EMISSION" value="3" enum="DecalTexture">
|
||||
[Texture2D] corresponding to [member texture_emission].
|
||||
</constant>
|
||||
<constant name="TEXTURE_MAX" value="4" enum="DecalTexture">
|
||||
Max size of [enum DecalTexture] enum.
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
|
@ -12,9 +12,6 @@
|
|||
<methods>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="directional_shadow_bias_split_scale" type="float" setter="set_param" getter="get_param" default="0.25">
|
||||
Amount of extra bias for shadow splits that are far away. If self-shadowing occurs only on the splits far away, increasing this value can fix them.
|
||||
</member>
|
||||
<member name="directional_shadow_blend_splits" type="bool" setter="set_blend_splits" getter="is_blend_splits_enabled" default="false">
|
||||
If [code]true[/code], shadow detail is sacrificed in exchange for smoother transitions between splits.
|
||||
</member>
|
||||
|
@ -22,6 +19,7 @@
|
|||
Optimizes shadow rendering for detail versus movement. See [enum ShadowDepthRange].
|
||||
</member>
|
||||
<member name="directional_shadow_fade_start" type="float" setter="set_param" getter="get_param" default="0.8">
|
||||
Proportion of [member directional_shadow_max_distance] at which point the shadow starts to fade. At [member directional_shadow_max_distance] the shadow will disappear.
|
||||
</member>
|
||||
<member name="directional_shadow_max_distance" type="float" setter="set_param" getter="get_param" default="100.0">
|
||||
The maximum distance for shadow splits.
|
||||
|
@ -29,8 +27,8 @@
|
|||
<member name="directional_shadow_mode" type="int" setter="set_shadow_mode" getter="get_shadow_mode" enum="DirectionalLight3D.ShadowMode" default="2">
|
||||
The light's shadow rendering algorithm. See [enum ShadowMode].
|
||||
</member>
|
||||
<member name="directional_shadow_normal_bias" type="float" setter="set_param" getter="get_param" default="0.8">
|
||||
Can be used to fix special cases of self shadowing when objects are perpendicular to the light.
|
||||
<member name="directional_shadow_pancake_size" type="float" setter="set_param" getter="get_param" default="20.0">
|
||||
Sets the size of the directional shadow pancake. The pancake offsets the start of the shadow's camera frustum to provide a higher effective depth resolution for the shadow. However, a high pancake size can cause artifacts in the shadows of large objects that are close to the edge of the frustum. Reducing the pancake size can help. Setting the size to [code]0[/code] turns off the pancaking effect.
|
||||
</member>
|
||||
<member name="directional_shadow_split_1" type="float" setter="set_param" getter="get_param" default="0.1">
|
||||
The distance from camera to shadow split 1. Relative to [member directional_shadow_max_distance]. Only used when [member directional_shadow_mode] is [code]SHADOW_PARALLEL_2_SPLITS[/code] or [code]SHADOW_PARALLEL_4_SPLITS[/code].
|
||||
|
@ -41,7 +39,6 @@
|
|||
<member name="directional_shadow_split_3" type="float" setter="set_param" getter="get_param" default="0.5">
|
||||
The distance from shadow split 2 to split 3. Relative to [member directional_shadow_max_distance]. Only used when [member directional_shadow_mode] is [code]SHADOW_PARALLEL_4_SPLITS[/code].
|
||||
</member>
|
||||
<member name="shadow_bias" type="float" setter="set_param" getter="get_param" override="true" default="0.1" />
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="SHADOW_ORTHOGONAL" value="0" enum="ShadowMode">
|
||||
|
|
|
@ -265,18 +265,25 @@
|
|||
Represents the size of the [enum BGMode] enum.
|
||||
</constant>
|
||||
<constant name="AMBIENT_SOURCE_BG" value="0" enum="AmbientSource">
|
||||
Gather ambient light from whichever source is specified as the background.
|
||||
</constant>
|
||||
<constant name="AMBIENT_SOURCE_DISABLED" value="1" enum="AmbientSource">
|
||||
Disable ambient light.
|
||||
</constant>
|
||||
<constant name="AMBIENT_SOURCE_COLOR" value="2" enum="AmbientSource">
|
||||
Specify a specific [Color] for ambient light.
|
||||
</constant>
|
||||
<constant name="AMBIENT_SOURCE_SKY" value="3" enum="AmbientSource">
|
||||
Gather ambient light from the [Sky] regardless of what the background is.
|
||||
</constant>
|
||||
<constant name="REFLECTION_SOURCE_BG" value="0" enum="ReflectionSource">
|
||||
Use the background for reflections.
|
||||
</constant>
|
||||
<constant name="REFLECTION_SOURCE_DISABLED" value="1" enum="ReflectionSource">
|
||||
Disable reflections.
|
||||
</constant>
|
||||
<constant name="REFLECTION_SOURCE_SKY" value="2" enum="ReflectionSource">
|
||||
Use the [Sky] for reflections regardless of what the background is.
|
||||
</constant>
|
||||
<constant name="GLOW_BLEND_MODE_ADDITIVE" value="0" enum="GlowBlendMode">
|
||||
Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources.
|
||||
|
@ -291,6 +298,7 @@
|
|||
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.
|
||||
</constant>
|
||||
<constant name="GLOW_BLEND_MODE_MIX" value="4" enum="GlowBlendMode">
|
||||
Mixes the glow with the underlying color to avoid increasing brightness as much while still maintaining a glow effect.
|
||||
</constant>
|
||||
<constant name="TONE_MAPPER_LINEAR" value="0" enum="ToneMapper">
|
||||
Linear tonemapper operator. Reads the linear data and passes it on unmodified.
|
||||
|
@ -314,7 +322,7 @@
|
|||
2×2 blur for the screen-space ambient occlusion effect.
|
||||
</constant>
|
||||
<constant name="SSAO_BLUR_3x3" value="3" enum="SSAOBlur">
|
||||
3×3 blur for the screen-space ambient occlusion effect (slowest).
|
||||
3×3 blur for the screen-space ambient occlusion effect. Increases the radius of the blur for a smoother look, but can result in checkerboard-like artifacts.
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
|
|
|
@ -56,13 +56,16 @@
|
|||
<member name="light_negative" type="bool" setter="set_negative" getter="is_negative" default="false">
|
||||
If [code]true[/code], the light's effect is reversed, darkening areas and casting bright shadows.
|
||||
</member>
|
||||
<member name="light_projector" type="Texture2D" setter="set_projector" getter="get_projector">
|
||||
[Texture2D] projected by light. [member shadow_enabled] must be on for the projector to work. Light projectors make the light appear as if it is shining through a colored but transparent object, almost like light shining through stained glass.
|
||||
</member>
|
||||
<member name="light_size" type="float" setter="set_param" getter="get_param" default="0.0">
|
||||
The size of the light in Godot units. Only available for [OmniLight3D]s and [SpotLight3D]s.
|
||||
</member>
|
||||
<member name="light_specular" type="float" setter="set_param" getter="get_param" default="0.5">
|
||||
The intensity of the specular blob in objects affected by the light. At [code]0[/code] the light becomes a pure diffuse light.
|
||||
</member>
|
||||
<member name="shadow_bias" type="float" setter="set_param" getter="get_param" default="0.15">
|
||||
<member name="shadow_bias" type="float" setter="set_param" getter="get_param" default="0.02">
|
||||
Used to adjust shadow appearance. Too small a value results in self-shadowing, while too large a value causes shadows to separate from casters. Adjust as needed.
|
||||
</member>
|
||||
<member name="shadow_blur" type="float" setter="set_param" getter="get_param" default="1.0">
|
||||
|
@ -71,15 +74,17 @@
|
|||
<member name="shadow_color" type="Color" setter="set_shadow_color" getter="get_shadow_color" default="Color( 0, 0, 0, 1 )">
|
||||
The color of shadows cast by this light.
|
||||
</member>
|
||||
<member name="shadow_contact" type="float" setter="set_param" getter="get_param" default="0.0">
|
||||
Attempts to reduce [member shadow_bias] gap.
|
||||
</member>
|
||||
<member name="shadow_enabled" type="bool" setter="set_shadow" getter="has_shadow" default="false">
|
||||
If [code]true[/code], the light will cast shadows.
|
||||
</member>
|
||||
<member name="shadow_normal_bias" type="float" setter="set_param" getter="get_param" default="1.0">
|
||||
Offsets the lookup into the shadow map by the objects normal. This can be used reduce self-shadowing artifacts without using [member shadow_bias]. In practice, this value should be tweaked along with [member shadow_bias] to reduce artifacts as much as possible.
|
||||
</member>
|
||||
<member name="shadow_reverse_cull_face" type="bool" setter="set_shadow_reverse_cull_face" getter="get_shadow_reverse_cull_face" default="false">
|
||||
If [code]true[/code], reverses the backface culling of the mesh. This can be useful when you have a flat mesh that has a light behind it. If you need to cast a shadow on both sides of the mesh, set the mesh to use double-sided shadows with [constant GeometryInstance3D.SHADOW_CASTING_SETTING_DOUBLE_SIDED].
|
||||
</member>
|
||||
<member name="shadow_transmittance_bias" type="float" setter="set_param" getter="get_param" default="0.05">
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="PARAM_ENERGY" value="0" enum="Param">
|
||||
|
@ -94,18 +99,15 @@
|
|||
<constant name="PARAM_RANGE" value="3" enum="Param">
|
||||
Constant for accessing [member OmniLight3D.omni_range] or [member SpotLight3D.spot_range].
|
||||
</constant>
|
||||
<constant name="PARAM_ATTENUATION" value="4" enum="Param">
|
||||
<constant name="PARAM_ATTENUATION" value="5" enum="Param">
|
||||
Constant for accessing [member OmniLight3D.omni_attenuation] or [member SpotLight3D.spot_attenuation].
|
||||
</constant>
|
||||
<constant name="PARAM_SPOT_ANGLE" value="5" enum="Param">
|
||||
<constant name="PARAM_SPOT_ANGLE" value="6" enum="Param">
|
||||
Constant for accessing [member SpotLight3D.spot_angle].
|
||||
</constant>
|
||||
<constant name="PARAM_SPOT_ATTENUATION" value="6" enum="Param">
|
||||
<constant name="PARAM_SPOT_ATTENUATION" value="7" enum="Param">
|
||||
Constant for accessing [member SpotLight3D.spot_angle_attenuation].
|
||||
</constant>
|
||||
<constant name="PARAM_CONTACT_SHADOW_SIZE" value="7" enum="Param">
|
||||
Constant for accessing [member shadow_contact].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_MAX_DISTANCE" value="8" enum="Param">
|
||||
Constant for accessing [member DirectionalLight3D.directional_shadow_max_distance].
|
||||
</constant>
|
||||
|
@ -119,17 +121,24 @@
|
|||
Constant for accessing [member DirectionalLight3D.directional_shadow_split_3].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_FADE_START" value="12" enum="Param">
|
||||
Constant for accessing [member DirectionalLight3D.directional_shadow_fade_start].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_NORMAL_BIAS" value="13" enum="Param">
|
||||
Constant for accessing [member DirectionalLight3D.directional_shadow_normal_bias].
|
||||
Constant for accessing [member shadow_normal_bias].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_BIAS" value="14" enum="Param">
|
||||
Constant for accessing [member shadow_bias].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_BIAS_SPLIT_SCALE" value="15" enum="Param">
|
||||
Constant for accessing [member DirectionalLight3D.directional_shadow_bias_split_scale].
|
||||
<constant name="PARAM_SHADOW_PANCAKE_SIZE" value="15" enum="Param">
|
||||
Constant for accessing [member DirectionalLight3D.directional_shadow_pancake_size].
|
||||
</constant>
|
||||
<constant name="PARAM_MAX" value="16" enum="Param">
|
||||
<constant name="PARAM_SHADOW_BLUR" value="16" enum="Param">
|
||||
Constant for accessing [member shadow_blur].
|
||||
</constant>
|
||||
<constant name="PARAM_TRANSMITTANCE_BIAS" value="17" enum="Param">
|
||||
Constant for accessing [member shadow_transmittance_bias].
|
||||
</constant>
|
||||
<constant name="PARAM_MAX" value="18" enum="Param">
|
||||
Represents the size of the [enum Param] enum.
|
||||
</constant>
|
||||
<constant name="BAKE_DISABLED" value="0" enum="BakeMode">
|
||||
|
|
|
@ -982,6 +982,15 @@
|
|||
<member name="rendering/quality/2d/use_pixel_snap" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], forces snapping of polygons to pixels in 2D rendering. May help in some pixel art styles.
|
||||
</member>
|
||||
<member name="rendering/quality/depth_of_field/depth_of_field_bokeh_quality" type="int" setter="" getter="" default="2">
|
||||
Sets the quality of the depth of field effect. Higher quality takes more samples, which is slower but looks smoother.
|
||||
</member>
|
||||
<member name="rendering/quality/depth_of_field/depth_of_field_bokeh_shape" type="int" setter="" getter="" default="1">
|
||||
Sets the depth of field shape. Can be Box, Hexagon, or Circle. Box is the fastest. Circle is the most realistic, but also the most expensive to compute.
|
||||
</member>
|
||||
<member name="rendering/quality/depth_of_field/depth_of_field_use_jitter" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], jitters DOF samples to make effect slightly blurrier and hide lines created from low sample rates. This can result in a slightly grainy appearance when used with a low number of samples.
|
||||
</member>
|
||||
<member name="rendering/quality/depth_prepass/disable_for_vendors" type="String" setter="" getter="" default=""PowerVR,Mali,Adreno,Apple"">
|
||||
Disables depth pre-pass for some GPU vendors (usually mobile), as their architecture already does this.
|
||||
</member>
|
||||
|
@ -998,7 +1007,7 @@
|
|||
Quality setting for shadows cast by [DirectionalLight3D]s. Higher quality settings use more samples when reading from shadow maps and are thus slower. Low quality settings may result in shadows looking grainy.
|
||||
</member>
|
||||
<member name="rendering/quality/directional_shadow/soft_shadow_quality.mobile" type="int" setter="" getter="" default="0">
|
||||
Lower-end override for [member rendering/quality/directional_shadow/soft_shadow_quality] on mobile devices, due to performance concerns or driver support.
|
||||
Lower-end override for [member rendering/quality/directional_shadow/soft_shadow_quality] on mobile devices, due to performance concerns or driver support.
|
||||
</member>
|
||||
<member name="rendering/quality/driver/driver_name" type="String" setter="" getter="" default=""Vulkan"">
|
||||
The video driver to use ("GLES2" or "Vulkan").
|
||||
|
@ -1006,32 +1015,17 @@
|
|||
[b]FIXME:[/b] No longer valid after DisplayServer split:
|
||||
In such cases, this property is not updated, so use [code]OS.get_current_video_driver[/code] to query it at run-time.
|
||||
</member>
|
||||
<member name="rendering/quality/filters/depth_of_field_bokeh_quality" type="int" setter="" getter="" default="2">
|
||||
</member>
|
||||
<member name="rendering/quality/filters/depth_of_field_bokeh_shape" type="int" setter="" getter="" default="1">
|
||||
</member>
|
||||
<member name="rendering/quality/filters/depth_of_field_use_jitter" type="bool" setter="" getter="" default="false">
|
||||
</member>
|
||||
<member name="rendering/quality/filters/max_anisotropy" type="int" setter="" getter="" default="4">
|
||||
</member>
|
||||
<member name="rendering/quality/filters/msaa" type="int" setter="" getter="" default="0">
|
||||
Sets the number of MSAA samples to use. MSAA is used to reduce aliasing around the edges of polygons. A higher MSAA value results in smoother edges but can be significantly slower on some hardware.
|
||||
[b]Note:[/b] MSAA is not available on HTML5 export using the GLES2 backend.
|
||||
</member>
|
||||
<member name="rendering/quality/filters/screen_space_roughness_limiter" type="int" setter="" getter="" default="0">
|
||||
</member>
|
||||
<member name="rendering/quality/filters/screen_space_roughness_limiter_curve" type="float" setter="" getter="" default="1.0">
|
||||
</member>
|
||||
<member name="rendering/quality/filters/use_nearest_mipmap_filter" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], uses nearest-neighbor mipmap filtering when using mipmaps (also called "bilinear filtering"), which will result in visible seams appearing between mipmap stages. This may increase performance in mobile as less memory bandwidth is used. If [code]false[/code], linear mipmap filtering (also called "trilinear filtering") is used.
|
||||
</member>
|
||||
<member name="rendering/quality/gi_probes/anisotropic" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], take additional samples when rendering objects affected by a [GIProbe] to reduce artifacts from only sampling in one direction.
|
||||
</member>
|
||||
<member name="rendering/quality/gi_probes/quality" type="int" setter="" getter="" default="1">
|
||||
Sets the number of cone samples taken when rendering objects affected by [GIProbe]s.
|
||||
</member>
|
||||
<member name="rendering/quality/glow/upscale_mode" type="int" setter="" getter="" default="1">
|
||||
Sets how the glow effect is upscaled before being copied onto the screen. Linear is faster, but looks blocky. Bicubic is slower but looks smooth.
|
||||
</member>
|
||||
<member name="rendering/quality/glow/upscale_mode.mobile" type="int" setter="" getter="" default="0">
|
||||
Lower-end override for [member rendering/quality/glow/upscale_mode] on mobile devices, due to performance concerns or driver support.
|
||||
</member>
|
||||
<member name="rendering/quality/intended_usage/framebuffer_allocation" type="int" setter="" getter="" default="2">
|
||||
Strategy used for framebuffer allocation. The simpler it is, the less resources it uses (but the less features it supports). If set to "2D Without Sampling" or "3D Without Effects", sample buffers will not be allocated. This means [code]SCREEN_TEXTURE[/code] and [code]DEPTH_TEXTURE[/code] will not be available in shaders and post-processing effects will not be available in the [Environment].
|
||||
|
@ -1066,7 +1060,22 @@
|
|||
<member name="rendering/quality/reflections/texture_array_reflections.mobile" type="bool" setter="" getter="" default="false">
|
||||
Lower-end override for [member rendering/quality/reflections/texture_array_reflections] on mobile devices, due to performance concerns or driver support.
|
||||
</member>
|
||||
<member name="rendering/quality/screen_filters/msaa" type="int" setter="" getter="" default="0">
|
||||
Sets the number of MSAA samples to use. MSAA is used to reduce aliasing around the edges of polygons. A higher MSAA value results in smoother edges but can be significantly slower on some hardware.
|
||||
[b]Note:[/b] MSAA is not available on HTML5 export using the GLES2 backend.
|
||||
</member>
|
||||
<member name="rendering/quality/screen_filters/screen_space_aa" type="int" setter="" getter="" default="0">
|
||||
Sets the screen-space antialiasing mode for the default screen [Viewport]. Screen-space antialiasing works by selectively blurring edges in a post-process shader. It differs from MSAA which takes multiple coverage samples while rendering objects. Screen-space AA methods are typically faster than MSAA and will smooth out specular aliasing, but tend to make scenes appear blurry.
|
||||
Another way to combat specular aliasing is to enable [member rendering/quality/screen_filters/screen_space_roughness_limiter].
|
||||
</member>
|
||||
<member name="rendering/quality/screen_filters/screen_space_roughness_limiter" type="int" setter="" getter="" default="0">
|
||||
Enables the screen-space roughness limiter which increases material roughness in areas with a high normal frequency (i.e. when normals change a lot from pixel to pixel). This helps to reduce the amount of specular aliasing in a scene. Specular aliasing looks like random bright pixels that occur in reflections.
|
||||
</member>
|
||||
<member name="rendering/quality/screen_filters/screen_space_roughness_limiter_curve" type="float" setter="" getter="" default="1.0">
|
||||
Curves the amount of the roughness limited effect. A higher value limits the effect to very sharply curved surfaces, while a lower threshold extends the effect to smoother surfaces.
|
||||
</member>
|
||||
<member name="rendering/quality/screen_space_reflection/roughness_quality" type="int" setter="" getter="" default="1">
|
||||
Sets the quality for rough screen-space reflections. Turning off will make all screen space reflections sharp, while higher values make rough reflections look better.
|
||||
</member>
|
||||
<member name="rendering/quality/shading/force_blinn_over_ggx" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], uses faster but lower-quality Blinn model to generate blurred reflections instead of the GGX model.
|
||||
|
@ -1111,14 +1120,26 @@
|
|||
Lower-end override for [member rendering/quality/shadows/soft_shadow_quality] on mobile devices, due to performance concerns or driver support.
|
||||
</member>
|
||||
<member name="rendering/quality/ssao/half_size" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], screen-space ambient occlusion will be rendered at half size and then upscaled before being added to the scene. This is significantly faster but may miss small details.
|
||||
</member>
|
||||
<member name="rendering/quality/ssao/quality" type="int" setter="" getter="" default="1">
|
||||
Sets the quality of the screen-space ambient occlusion effect. Higher values take more samples and so will result in better quality, at the cost of performance.
|
||||
</member>
|
||||
<member name="rendering/quality/subsurface_scattering/subsurface_scattering_depth_scale" type="float" setter="" getter="" default="0.01">
|
||||
Scales the depth over which the subsurface scattering effect is applied. A high value may allow light to scatter into a part of the mesh or another mesh that is close in screen space but far in depth.
|
||||
</member>
|
||||
<member name="rendering/quality/subsurface_scattering/subsurface_scattering_quality" type="int" setter="" getter="" default="1">
|
||||
Sets the quality of the subsurface scattering effect. Higher values are slower but look nicer.
|
||||
</member>
|
||||
<member name="rendering/quality/subsurface_scattering/subsurface_scattering_scale" type="float" setter="" getter="" default="0.05">
|
||||
Scales the distance over which samples are taken for subsurface scattering effect. Changing this does not impact performance, but higher values will result in significant artifacts as the samples will become obviously spread out. A lower value results in a smaller spread of scattered light.
|
||||
</member>
|
||||
<member name="rendering/quality/texture_filters/max_anisotropy" type="int" setter="" getter="" default="4">
|
||||
Sets the maximum number of samples to take when using anisotropic filtering on textures. A higher sample count will result in sharper textures at oblique angles, but is more expensive to compute.
|
||||
Only power of two values are valid ([code]1[/code], [code]2[/code], [code]4[/code], [code]8[/code], [code]16[/code]). A value of [code]1[/code] forcibly disables anisotropic filtering, even on materials where it is enabled.
|
||||
</member>
|
||||
<member name="rendering/quality/texture_filters/use_nearest_mipmap_filter" type="bool" setter="" getter="" default="false">
|
||||
If [code]true[/code], uses nearest-neighbor mipmap filtering when using mipmaps (also called "bilinear filtering"), which will result in visible seams appearing between mipmap stages. This may increase performance in mobile as less memory bandwidth is used. If [code]false[/code], linear mipmap filtering (also called "trilinear filtering") is used.
|
||||
</member>
|
||||
<member name="rendering/threads/thread_model" type="int" setter="" getter="" default="1">
|
||||
Thread model for rendering. Rendering on a thread can vastly improve performance, but synchronizing to the main thread can cause a bit more jitter.
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
Server for anything visible.
|
||||
</brief_description>
|
||||
<description>
|
||||
Server for anything visible. The visual server is the API backend for everything visible. The whole scene system mounts on it to display.
|
||||
The visual server is completely opaque, the internals are entirely implementation specific and cannot be accessed.
|
||||
The visual server can be used to bypass the scene system entirely.
|
||||
Server for anything visible. The rendering server is the API backend for everything visible. The whole scene system mounts on it to display.
|
||||
The rendering server is completely opaque, the internals are entirely implementation specific and cannot be accessed.
|
||||
The rendering server can be used to bypass the scene system entirely.
|
||||
Resources are created using the [code]*_create[/code] functions.
|
||||
All objects are drawn to a viewport. You can use the [Viewport] attached to the [SceneTree] or you can create one yourself with [method viewport_create]. When using a custom scenario or canvas, the scenario or canvas needs to be attached to the viewport using [method viewport_set_scenario] or [method viewport_attach_canvas].
|
||||
In 3D, all visual objects must be associated with a scenario. The scenario is a visual representation of the world. If accessing the visual server from a running game, the scenario can be accessed from the scene tree from any [Node3D] node with [method Node3D.get_world]. Otherwise, a scenario can be created with [method scenario_create].
|
||||
In 3D, all visual objects must be associated with a scenario. The scenario is a visual representation of the world. If accessing the rendering server from a running game, the scenario can be accessed from the scene tree from any [Node3D] node with [method Node3D.get_world]. Otherwise, a scenario can be created with [method scenario_create].
|
||||
Similarly in 2D, a canvas is needed to draw all canvas items.
|
||||
In 3D, all visible objects are comprised of a resource and an instance. A resource can be a mesh, a particle system, a light, or any other 3D object. In order to be visible resources must be attached to an instance using [method instance_set_base]. The instance must also be attached to the scenario using [method instance_set_scenario] in order to be visible.
|
||||
In 2D, all visible objects are some form of canvas item. In order to be visible, a canvas item needs to be the child of a canvas attached to a viewport, or it needs to be the child of another canvas item that is eventually attached to the canvas.
|
||||
|
@ -1113,7 +1113,7 @@
|
|||
<return type="void">
|
||||
</return>
|
||||
<description>
|
||||
Initializes the visual server. This function is called internally by platform-dependent code during engine initialization. If called from a running game, it will not do anything.
|
||||
Initializes the rendering server. This function is called internally by platform-dependent code during engine initialization. If called from a running game, it will not do anything.
|
||||
</description>
|
||||
</method>
|
||||
<method name="instance_attach_object_instance_id">
|
||||
|
@ -3307,6 +3307,7 @@
|
|||
Proportion of shadow atlas occupied by the third split. The fourth split occupies the rest.
|
||||
</constant>
|
||||
<constant name="LIGHT_PARAM_SHADOW_FADE_START" value="12" enum="LightParam">
|
||||
Proportion of shadow max distance where the shadow will start to fade out.
|
||||
</constant>
|
||||
<constant name="LIGHT_PARAM_SHADOW_NORMAL_BIAS" value="13" enum="LightParam">
|
||||
Normal bias used to offset shadow lookup by object normal. Can be used to fix self-shadowing artifacts.
|
||||
|
@ -3314,10 +3315,15 @@
|
|||
<constant name="LIGHT_PARAM_SHADOW_BIAS" value="14" enum="LightParam">
|
||||
Bias the shadow lookup to fix self-shadowing artifacts.
|
||||
</constant>
|
||||
<constant name="LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE" value="15" enum="LightParam">
|
||||
Increases bias on further splits to fix self-shadowing that only occurs far away from the camera.
|
||||
<constant name="LIGHT_PARAM_SHADOW_PANCAKE_SIZE" value="15" enum="LightParam">
|
||||
Sets the size of the directional shadow pancake. The pancake offsets the start of the shadow's camera frustum to provide a higher effective depth resolution for the shadow. However, a high pancake size can cause artifacts in the shadows of large objects that are close to the edge of the frustum. Reducing the pancake size can help. Setting the size to [code]0[/code] turns off the pancaking effect.
|
||||
</constant>
|
||||
<constant name="LIGHT_PARAM_MAX" value="16" enum="LightParam">
|
||||
<constant name="LIGHT_PARAM_SHADOW_BLUR" value="16" enum="LightParam">
|
||||
Blurs the edges of the shadow. Can be used to hide pixel artifacts in low resolution shadow maps. A high value can make shadows appear grainy and can cause other unwanted artifacts. Try to keep as near default as possible.
|
||||
</constant>
|
||||
<constant name="LIGHT_PARAM_TRANSMITTANCE_BIAS" value="17" enum="LightParam">
|
||||
</constant>
|
||||
<constant name="LIGHT_PARAM_MAX" value="18" enum="LightParam">
|
||||
Represents the size of the [enum LightParam] enum.
|
||||
</constant>
|
||||
<constant name="LIGHT_OMNI_SHADOW_DUAL_PARABOLOID" value="0" enum="LightOmniShadowMode">
|
||||
|
@ -3383,22 +3389,16 @@
|
|||
Multisample antialiasing is disabled.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_MSAA_2X" value="1" enum="ViewportMSAA">
|
||||
Multisample antialiasing is set to 2×.
|
||||
Multisample antialiasing uses 2 samples per pixel.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_MSAA_4X" value="2" enum="ViewportMSAA">
|
||||
Multisample antialiasing is set to 4×.
|
||||
Multisample antialiasing uses 4 samples per pixel.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_MSAA_8X" value="3" enum="ViewportMSAA">
|
||||
Multisample antialiasing is set to 8×.
|
||||
Multisample antialiasing uses 8 samples per pixel.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_MSAA_16X" value="4" enum="ViewportMSAA">
|
||||
Multisample antialiasing is set to 16×.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_MSAA_EXT_2X" value="5" enum="ViewportMSAA">
|
||||
Multisample antialiasing is set to 2× on external texture. Special mode for GLES2 Android VR (Oculus Quest and Go).
|
||||
</constant>
|
||||
<constant name="VIEWPORT_MSAA_EXT_4X" value="6" enum="ViewportMSAA">
|
||||
Multisample antialiasing is set to 4× on external texture. Special mode for GLES2 Android VR (Oculus Quest and Go).
|
||||
Multisample antialiasing uses 16 samples per pixel.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME" value="0" enum="ViewportRenderInfo">
|
||||
Number of objects drawn in a single frame.
|
||||
|
@ -3425,37 +3425,52 @@
|
|||
Debug draw is disabled. Default setting.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_UNSHADED" value="1" enum="ViewportDebugDraw">
|
||||
Debug draw sets objects to unshaded.
|
||||
Objects are displayed without light information.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_LIGHTING" value="2" enum="ViewportDebugDraw">
|
||||
Objects are displayed with only light information.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_OVERDRAW" value="3" enum="ViewportDebugDraw">
|
||||
Overwrites clear color to [code](0,0,0,0)[/code].
|
||||
Objects are displayed semi-transparent with additive blending so you can see where they are drawing over top of one another. A higher overdraw means you are wasting performance on drawing pixels that are being hidden behind others.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_WIREFRAME" value="4" enum="ViewportDebugDraw">
|
||||
Debug draw draws objects in wireframe.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_NORMAL_BUFFER" value="5" enum="ViewportDebugDraw">
|
||||
Normal buffer is drawn instead of regular scene so you can see the per-pixel normals that will be used by post-processing effects.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_GI_PROBE_ALBEDO" value="6" enum="ViewportDebugDraw">
|
||||
Objects are displayed with only the albedo value from [GIProbe]s.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_GI_PROBE_LIGHTING" value="7" enum="ViewportDebugDraw">
|
||||
Objects are displayed with only the lighting value from [GIProbe]s.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_GI_PROBE_EMISSION" value="8" enum="ViewportDebugDraw">
|
||||
Objects are displayed with only the emission color from [GIProbe]s.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_SHADOW_ATLAS" value="9" enum="ViewportDebugDraw">
|
||||
Draws the shadow atlas that stores shadows from [OmniLight3D]s and [SpotLight3D]s in the upper left quadrant of the [Viewport].
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_DIRECTIONAL_SHADOW_ATLAS" value="10" enum="ViewportDebugDraw">
|
||||
Draws the shadow atlas that stores shadows from [DirectionalLight3D]s in the upper left quadrant of the [Viewport].
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_SCENE_LUMINANCE" value="11" enum="ViewportDebugDraw">
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_SSAO" value="12" enum="ViewportDebugDraw">
|
||||
Draws the screen space ambient occlusion texture instead of the scene so that you can clearly see how it is affecting objects. In order for this display mode to work, you must have [member Environment.ssao_enabled] set in your [WorldEnvironment].
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_ROUGHNESS_LIMITER" value="13" enum="ViewportDebugDraw">
|
||||
Draws the roughness limiter post process over the Viewport so you can see where it has an effect. It must be enabled in [member ProjectSettings.rendering/quality/screen_filters/screen_space_roughness_limiter] to work.
|
||||
</constant>
|
||||
<constant name="VIEWPORT_DEBUG_DRAW_PSSM_SPLITS" value="14" enum="ViewportDebugDraw">
|
||||
Colors each PSSM split for the [DirectionalLight3D]s in the scene a different color so you can see where the splits are. In order they will be colored red, green, blue, yellow.
|
||||
</constant>
|
||||
<constant name="SKY_MODE_QUALITY" value="0" enum="SkyMode">
|
||||
Uses high quality importance sampling to process the radiance map. In general, this results in much higher quality than [constant Sky.PROCESS_MODE_REALTIME] but takes much longer to generate. This should not be used if you plan on changing the sky at runtime. If you are finding that the reflection is not blurry enough and is showing sparkles or fireflies, try increasing [member ProjectSettings.rendering/quality/reflections/ggx_samples].
|
||||
</constant>
|
||||
<constant name="SKY_MODE_REALTIME" value="1" enum="SkyMode">
|
||||
Uses the fast filtering algorithm to process the radiance map. In general this results in lower quality, but substantially faster run times.
|
||||
[b]Note:[/b] The fast filtering algorithm is limited to 256x256 cubemaps, so [member Sky.radiance_size] must be set to [constant Sky.RADIANCE_SIZE_256].
|
||||
</constant>
|
||||
<constant name="ENV_BG_CLEAR_COLOR" value="0" enum="EnvironmentBG">
|
||||
Use the clear color as background.
|
||||
|
@ -3479,28 +3494,40 @@
|
|||
Represents the size of the [enum EnvironmentBG] enum.
|
||||
</constant>
|
||||
<constant name="ENV_AMBIENT_SOURCE_BG" value="0" enum="EnvironmentAmbientSource">
|
||||
Gather ambient light from whichever source is specified as the background.
|
||||
</constant>
|
||||
<constant name="ENV_AMBIENT_SOURCE_DISABLED" value="1" enum="EnvironmentAmbientSource">
|
||||
Disable ambient light.
|
||||
</constant>
|
||||
<constant name="ENV_AMBIENT_SOURCE_COLOR" value="2" enum="EnvironmentAmbientSource">
|
||||
Specify a specific [Color] for ambient light.
|
||||
</constant>
|
||||
<constant name="ENV_AMBIENT_SOURCE_SKY" value="3" enum="EnvironmentAmbientSource">
|
||||
Gather ambient light from the [Sky] regardless of what the background is.
|
||||
</constant>
|
||||
<constant name="ENV_REFLECTION_SOURCE_BG" value="0" enum="EnvironmentReflectionSource">
|
||||
Use the background for reflections.
|
||||
</constant>
|
||||
<constant name="ENV_REFLECTION_SOURCE_DISABLED" value="1" enum="EnvironmentReflectionSource">
|
||||
Disable reflections.
|
||||
</constant>
|
||||
<constant name="ENV_REFLECTION_SOURCE_SKY" value="2" enum="EnvironmentReflectionSource">
|
||||
Use the [Sky] for reflections regardless of what the background is.
|
||||
</constant>
|
||||
<constant name="ENV_GLOW_BLEND_MODE_ADDITIVE" value="0" enum="EnvironmentGlowBlendMode">
|
||||
Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources.
|
||||
</constant>
|
||||
<constant name="ENV_GLOW_BLEND_MODE_SCREEN" value="1" enum="EnvironmentGlowBlendMode">
|
||||
Screen glow blending mode. Increases brightness, used frequently with bloom.
|
||||
</constant>
|
||||
<constant name="ENV_GLOW_BLEND_MODE_SOFTLIGHT" value="2" enum="EnvironmentGlowBlendMode">
|
||||
Soft light glow blending mode. Modifies contrast, exposes shadows and highlights (vivid bloom).
|
||||
</constant>
|
||||
<constant name="ENV_GLOW_BLEND_MODE_REPLACE" value="3" enum="EnvironmentGlowBlendMode">
|
||||
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.
|
||||
</constant>
|
||||
<constant name="ENV_GLOW_BLEND_MODE_MIX" value="4" enum="EnvironmentGlowBlendMode">
|
||||
Mixes the glow with the underlying color to avoid increasing brightness as much while still maintaining a glow effect.
|
||||
</constant>
|
||||
<constant name="ENV_TONE_MAPPER_LINEAR" value="0" enum="EnvironmentToneMapper">
|
||||
Output color as they came in.
|
||||
|
@ -3533,23 +3560,31 @@
|
|||
Medium quality screen space ambient occlusion.
|
||||
</constant>
|
||||
<constant name="ENV_SSAO_QUALITY_HIGH" value="2" enum="EnvironmentSSAOQuality">
|
||||
Highest quality screen space ambient occlusion.
|
||||
High quality screen space ambient occlusion.
|
||||
</constant>
|
||||
<constant name="ENV_SSAO_QUALITY_ULTRA" value="3" enum="EnvironmentSSAOQuality">
|
||||
Highest quality screen space ambient occlusion.
|
||||
</constant>
|
||||
<constant name="DOF_BLUR_QUALITY_VERY_LOW" value="0" enum="DOFBlurQuality">
|
||||
Lowest quality DOF blur. This is the fastest setting, but you may be able to see filtering artifacts.
|
||||
</constant>
|
||||
<constant name="DOF_BLUR_QUALITY_LOW" value="1" enum="DOFBlurQuality">
|
||||
Low quality DOF blur.
|
||||
</constant>
|
||||
<constant name="DOF_BLUR_QUALITY_MEDIUM" value="2" enum="DOFBlurQuality">
|
||||
Medium quality DOF blur.
|
||||
</constant>
|
||||
<constant name="DOF_BLUR_QUALITY_HIGH" value="3" enum="DOFBlurQuality">
|
||||
Highest quality DOF blur. Results in the smoothest looking blur by taking the most samples, but is also significantly slower.
|
||||
</constant>
|
||||
<constant name="DOF_BOKEH_BOX" value="0" enum="DOFBokehShape">
|
||||
Calculate the DOF blur using a box filter. The fastest option, but results in obvious lines in blur pattern.
|
||||
</constant>
|
||||
<constant name="DOF_BOKEH_HEXAGON" value="1" enum="DOFBokehShape">
|
||||
Calculates DOF blur using a hexagon shaped filter.
|
||||
</constant>
|
||||
<constant name="DOF_BOKEH_CIRCLE" value="2" enum="DOFBokehShape">
|
||||
Calculates DOF blur using a circle shaped filter. Best quality and most realistic, but slowest. Use only for areas where a lot of performance can be dedicated to post-processing (e.g. cutscenes).
|
||||
</constant>
|
||||
<constant name="SCENARIO_DEBUG_DISABLED" value="0" enum="ScenarioDebugMode">
|
||||
Do not use a debug mode.
|
||||
|
@ -3584,13 +3619,13 @@
|
|||
<constant name="INSTANCE_REFLECTION_PROBE" value="6" enum="InstanceType">
|
||||
The instance is a reflection probe.
|
||||
</constant>
|
||||
<constant name="INSTANCE_GI_PROBE" value="7" enum="InstanceType">
|
||||
<constant name="INSTANCE_GI_PROBE" value="8" enum="InstanceType">
|
||||
The instance is a GI probe.
|
||||
</constant>
|
||||
<constant name="INSTANCE_LIGHTMAP_CAPTURE" value="8" enum="InstanceType">
|
||||
<constant name="INSTANCE_LIGHTMAP_CAPTURE" value="9" enum="InstanceType">
|
||||
The instance is a lightmap capture.
|
||||
</constant>
|
||||
<constant name="INSTANCE_MAX" value="9" enum="InstanceType">
|
||||
<constant name="INSTANCE_MAX" value="10" enum="InstanceType">
|
||||
Represents the size of the [enum InstanceType] enum.
|
||||
</constant>
|
||||
<constant name="INSTANCE_GEOMETRY_MASK" value="30" enum="InstanceType">
|
||||
|
@ -3600,6 +3635,7 @@
|
|||
Allows the instance to be used in baked lighting.
|
||||
</constant>
|
||||
<constant name="INSTANCE_FLAG_USE_DYNAMIC_GI" value="1" enum="InstanceFlags">
|
||||
Allows the instance to be used with dynamic global illumination.
|
||||
</constant>
|
||||
<constant name="INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE" value="2" enum="InstanceFlags">
|
||||
When set, manually requests to draw geometry on next frame.
|
||||
|
@ -3629,30 +3665,43 @@
|
|||
The nine patch gets filled with tiles where needed and stretches them a bit if needed.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_FILTER_DEFAULT" value="0" enum="CanvasItemTextureFilter">
|
||||
Uses the default filter mode for this [Viewport].
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_FILTER_NEAREST" value="1" enum="CanvasItemTextureFilter">
|
||||
The texture filter reads from the nearest pixel only. The simplest and fastest method of filtering, but the texture will look pixelized.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_FILTER_LINEAR" value="2" enum="CanvasItemTextureFilter">
|
||||
The texture filter blends between the nearest 4 pixels. Use this when you want to avoid a pixelated style, but do not want mipmaps.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS" value="3" enum="CanvasItemTextureFilter">
|
||||
The texture filter reads from the nearest pixel in the nearest mipmap. The fastest way to read from textures with mipmaps.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS" value="4" enum="CanvasItemTextureFilter">
|
||||
The texture filter blends between the nearest 4 pixels and between the nearest 2 mipmaps.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC" value="5" enum="CanvasItemTextureFilter">
|
||||
The texture filter reads from the nearest pixel, but selects a mipmap based on the angle between the surface and the camera view. This reduces artifacts on surfaces that are almost in line with the camera.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC" value="6" enum="CanvasItemTextureFilter">
|
||||
The texture filter blends between the nearest 4 pixels and selects a mipmap based on the angle between the surface and the camera view. This reduces artifacts on surfaces that are almost in line with the camera. This is the slowest of the filtering options, but results in the highest quality texturing.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_FILTER_MAX" value="7" enum="CanvasItemTextureFilter">
|
||||
Max value for [enum CanvasItemTextureFilter] enum.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_REPEAT_DEFAULT" value="0" enum="CanvasItemTextureRepeat">
|
||||
Uses the default repeat mode for this [Viewport].
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_REPEAT_DISABLED" value="1" enum="CanvasItemTextureRepeat">
|
||||
Disables textures repeating. Instead, when reading UVs outside the 0-1 range, the value will be clamped to the edge of the texture, resulting in a stretched out look at the borders of the texture.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_REPEAT_ENABLED" value="2" enum="CanvasItemTextureRepeat">
|
||||
Enables the texture to repeat when UV coordinates are outside the 0-1 range. If using one of the linear filtering modes, this can result in artifacts at the edges of a texture when the sampler filters across the edges of the texture.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_REPEAT_MIRROR" value="3" enum="CanvasItemTextureRepeat">
|
||||
Flip the texture when repeating so that the edge lines up instead of abruptly changing.
|
||||
</constant>
|
||||
<constant name="CANVAS_ITEM_TEXTURE_REPEAT_MAX" value="4" enum="CanvasItemTextureRepeat">
|
||||
Max value for [enum CanvasItemTextureRepeat] enum.
|
||||
</constant>
|
||||
<constant name="CANVAS_LIGHT_MODE_ADD" value="0" enum="CanvasLightMode">
|
||||
Adds light color additive to the canvas.
|
||||
|
@ -3676,6 +3725,7 @@
|
|||
Use PCF13 filtering to filter canvas light shadows.
|
||||
</constant>
|
||||
<constant name="CANVAS_LIGHT_FILTER_MAX" value="3" enum="CanvasLightShadowFilter">
|
||||
Max value of the [enum CanvasLightShadowFilter] enum.
|
||||
</constant>
|
||||
<constant name="CANVAS_OCCLUDER_POLYGON_CULL_DISABLED" value="0" enum="CanvasOccluderPolygonCullMode">
|
||||
Culling of the canvas occluder is disabled.
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
Represents the size of the [enum RadianceSize] enum.
|
||||
</constant>
|
||||
<constant name="PROCESS_MODE_QUALITY" value="0" enum="ProcessMode">
|
||||
Uses high quality importance sampling to process the radiance map. In general, this results in much higher quality than [constant PROCESS_MODE_REALTIME] but takes much longer to generate. This should not be used if you plan on changing the sky at runtime.
|
||||
Uses high quality importance sampling to process the radiance map. In general, this results in much higher quality than [constant PROCESS_MODE_REALTIME] but takes much longer to generate. This should not be used if you plan on changing the sky at runtime. If you are finding that the reflection is not blurry enough and is showing sparkles or fireflies, try increasing [member ProjectSettings.rendering/quality/reflections/ggx_samples].
|
||||
</constant>
|
||||
<constant name="PROCESS_MODE_REALTIME" value="1" enum="ProcessMode">
|
||||
Uses the fast filtering algorithm to process the radiance map. In general this results in lower quality, but substantially faster run times.
|
||||
|
|
|
@ -192,8 +192,10 @@
|
|||
If [code]true[/code], the viewport will process 3D audio streams.
|
||||
</member>
|
||||
<member name="canvas_item_default_texture_filter" type="int" setter="set_default_canvas_item_texture_filter" getter="get_default_canvas_item_texture_filter" enum="Viewport.DefaultCanvasItemTextureFilter" default="1">
|
||||
Sets the default filter mode used by [CanvasItem]s in this Viewport. See [enum DefaultCanvasItemTextureFilter] for options.
|
||||
</member>
|
||||
<member name="canvas_item_default_texture_repeat" type="int" setter="set_default_canvas_item_texture_repeat" getter="get_default_canvas_item_texture_repeat" enum="Viewport.DefaultCanvasItemTextureRepeat" default="0">
|
||||
Sets the default repeat mode used by [CanvasItem]s in this Viewport. See [enum DefaultCanvasItemTextureRepeat] for options.
|
||||
</member>
|
||||
<member name="canvas_transform" type="Transform2D" setter="set_canvas_transform" getter="get_canvas_transform">
|
||||
The canvas transform of the viewport, useful for changing the on-screen positions of all child [CanvasItem]s. This is relative to the global canvas transform of the viewport.
|
||||
|
@ -223,6 +225,9 @@
|
|||
<member name="physics_object_picking" type="bool" setter="set_physics_object_picking" getter="get_physics_object_picking" default="false">
|
||||
If [code]true[/code], the objects rendered by viewport become subjects of mouse picking process.
|
||||
</member>
|
||||
<member name="screen_space_aa" type="int" setter="set_screen_space_aa" getter="get_screen_space_aa" enum="Viewport.ScreenSpaceAA" default="0">
|
||||
Sets the screen-space antialiasing method used. Screen-space antialiasing works by selectively blurring edges in a post-process shader. It differs from MSAA which takes multiple coverage samples while rendering objects. Screen-space AA methods are typically faster than MSAA and will smooth out specular aliasing, but tend to make scenes appear blurry.
|
||||
</member>
|
||||
<member name="shadow_atlas_quad_0" type="int" setter="set_shadow_atlas_quadrant_subdiv" getter="get_shadow_atlas_quadrant_subdiv" enum="Viewport.ShadowAtlasQuadrantSubdiv" default="2">
|
||||
The subdivision amount of the first quadrant on the shadow atlas.
|
||||
</member>
|
||||
|
@ -316,27 +321,42 @@
|
|||
Objects are displayed without light information.
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_OVERDRAW" value="3" enum="DebugDraw">
|
||||
Objected are displayed semi-transparent with additive blending so you can see where they intersect.
|
||||
Objects are displayed semi-transparent with additive blending so you can see where they are drawing over top of one another. A higher overdraw means you are wasting performance on drawing pixels that are being hidden behind others.
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_WIREFRAME" value="4" enum="DebugDraw">
|
||||
Objects are displayed in wireframe style.
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_GI_PROBE_ALBEDO" value="6" enum="DebugDraw">
|
||||
Objects are displayed with only the albedo value from [GIProbe]s.
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_GI_PROBE_LIGHTING" value="7" enum="DebugDraw">
|
||||
Objects are displayed with only the lighting value from [GIProbe]s.
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_GI_PROBE_EMISSION" value="8" enum="DebugDraw">
|
||||
Objects are displayed with only the emission color from [GIProbe]s.
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_SHADOW_ATLAS" value="9" enum="DebugDraw">
|
||||
Draws the shadow atlas that stores shadows from [OmniLight3D]s and [SpotLight3D]s in the upper left quadrant of the [Viewport].
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_DIRECTIONAL_SHADOW_ATLAS" value="10" enum="DebugDraw">
|
||||
Draws the shadow atlas that stores shadows from [DirectionalLight3D]s in the upper left quadrant of the [Viewport].
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_SCENE_LUMINANCE" value="11" enum="DebugDraw">
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_SSAO" value="12" enum="DebugDraw">
|
||||
Draws the screen-space ambient occlusion texture instead of the scene so that you can clearly see how it is affecting objects. In order for this display mode to work, you must have [member Environment.ssao_enabled] set in your [WorldEnvironment].
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_ROUGHNESS_LIMITER" value="13" enum="DebugDraw">
|
||||
Draws the roughness limiter post process over the Viewport so you can see where it has an effect. It must be enabled in [member ProjectSettings.rendering/quality/screen_filters/screen_space_roughness_limiter] to work.
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_PSSM_SPLITS" value="14" enum="DebugDraw">
|
||||
Colors each PSSM split for the [DirectionalLight3D]s in the scene a different color so you can see where the splits are. In order, they will be colored red, green, blue, and yellow.
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_DECAL_ATLAS" value="15" enum="DebugDraw">
|
||||
Draws the decal atlas used by [Decal]s and light projector textures in the upper left quadrant of the [Viewport].
|
||||
</constant>
|
||||
<constant name="MSAA_DISABLED" value="0" enum="MSAA">
|
||||
Multisample anti-aliasing mode disabled. This is the default value.
|
||||
Multisample antialiasing mode disabled. This is the default value, and also the fastest setting.
|
||||
</constant>
|
||||
<constant name="MSAA_2X" value="1" enum="MSAA">
|
||||
Use 2x Multisample Antialiasing.
|
||||
|
@ -350,23 +370,41 @@
|
|||
<constant name="MSAA_16X" value="4" enum="MSAA">
|
||||
Use 16x Multisample Antialiasing. Likely unsupported on medium and low-end hardware.
|
||||
</constant>
|
||||
<constant name="SCREEN_SPACE_AA_DISABLED" value="0" enum="ScreenSpaceAA">
|
||||
Do not perform any antialiasing in the full screen post-process.
|
||||
</constant>
|
||||
<constant name="SCREEN_SPACE_AA_FXAA" value="1" enum="ScreenSpaceAA">
|
||||
Use fast approximate antialiasing. FXAA is a popular screen-space antialising method, which is fast but will make the image look blurry, especially at lower resolutions. It can still work relatively well at large resolutions such as 1440p and 4K.
|
||||
</constant>
|
||||
<constant name="SCREEN_SPACE_AA_MAX" value="2" enum="ScreenSpaceAA">
|
||||
Max enum for screen-space antialiasing effects.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_NEAREST" value="0" enum="DefaultCanvasItemTextureFilter">
|
||||
The texture filter reads from the nearest pixel only. The simplest and fastest method of filtering, but the texture will look pixelized.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_LINEAR" value="1" enum="DefaultCanvasItemTextureFilter">
|
||||
The texture filter blends between the nearest 4 pixels. Use this when you want to avoid a pixelated style, but do not want mipmaps.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS" value="2" enum="DefaultCanvasItemTextureFilter">
|
||||
The texture filter reads from the nearest pixel in the nearest mipmap. The fastest way to read from textures with mipmaps.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS" value="3" enum="DefaultCanvasItemTextureFilter">
|
||||
The texture filter blends between the nearest 4 pixels and between the nearest 2 mipmaps.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_MAX" value="4" enum="DefaultCanvasItemTextureFilter">
|
||||
Max value for [enum DefaultCanvasItemTextureFilter] enum.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_DISABLED" value="0" enum="DefaultCanvasItemTextureRepeat">
|
||||
Disables textures repeating. Instead, when reading UVs outside the 0-1 range, the value will be clamped to the edge of the texture, resulting in a stretched out look at the borders of the texture.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_ENABLED" value="1" enum="DefaultCanvasItemTextureRepeat">
|
||||
Enables the texture to repeat when UV coordinates are outside the 0-1 range. If using one of the linear filtering modes, this can result in artifacts at the edges of a texture when the sampler filters across the edges of the texture.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MIRROR" value="2" enum="DefaultCanvasItemTextureRepeat">
|
||||
Flip the texture when repeating so that the edge lines up instead of abruptly changing.
|
||||
</constant>
|
||||
<constant name="DEFAULT_CANVAS_ITEM_TEXTURE_REPEAT_MAX" value="3" enum="DefaultCanvasItemTextureRepeat">
|
||||
Max value for [enum DefaultCanvasItemTextureRepeat] enum.
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
|
|
|
@ -1422,7 +1422,7 @@ SceneTree::SceneTree() {
|
|||
current_scene = nullptr;
|
||||
|
||||
int msaa_mode = GLOBAL_DEF("rendering/quality/screen_filters/msaa", 0);
|
||||
ProjectSettings::get_singleton()->set_custom_property_info("rendering/quality/screen_filters/msaa", PropertyInfo(Variant::INT, "rendering/quality/screen_filters/msaa", PROPERTY_HINT_ENUM, "Disabled,2x,4x,8x,16x,AndroidVR 2x,AndroidVR 4x"));
|
||||
ProjectSettings::get_singleton()->set_custom_property_info("rendering/quality/screen_filters/msaa", PropertyInfo(Variant::INT, "rendering/quality/screen_filters/msaa", PROPERTY_HINT_ENUM, "Disabled,2x,4x,8x,16x"));
|
||||
root->set_msaa(Viewport::MSAA(msaa_mode));
|
||||
|
||||
int ssaa_mode = GLOBAL_DEF("rendering/quality/screen_filters/screen_space_aa", 0);
|
||||
|
|
|
@ -3525,6 +3525,10 @@ void Viewport::_bind_methods() {
|
|||
BIND_ENUM_CONSTANT(MSAA_8X);
|
||||
BIND_ENUM_CONSTANT(MSAA_16X);
|
||||
|
||||
BIND_ENUM_CONSTANT(SCREEN_SPACE_AA_DISABLED);
|
||||
BIND_ENUM_CONSTANT(SCREEN_SPACE_AA_FXAA);
|
||||
BIND_ENUM_CONSTANT(SCREEN_SPACE_AA_MAX);
|
||||
|
||||
BIND_ENUM_CONSTANT(DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_NEAREST);
|
||||
BIND_ENUM_CONSTANT(DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_LINEAR);
|
||||
BIND_ENUM_CONSTANT(DEFAULT_CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS);
|
||||
|
|
|
@ -2027,6 +2027,7 @@ void RenderingServer::_bind_methods() {
|
|||
BIND_ENUM_CONSTANT(LIGHT_PARAM_INDIRECT_ENERGY);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SPECULAR);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_RANGE);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SIZE);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_ATTENUATION);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SPOT_ANGLE);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SPOT_ATTENUATION);
|
||||
|
@ -2037,6 +2038,9 @@ void RenderingServer::_bind_methods() {
|
|||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SHADOW_FADE_START);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SHADOW_NORMAL_BIAS);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SHADOW_BIAS);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SHADOW_PANCAKE_SIZE);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_SHADOW_BLUR);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_TRANSMITTANCE_BIAS);
|
||||
BIND_ENUM_CONSTANT(LIGHT_PARAM_MAX);
|
||||
|
||||
BIND_ENUM_CONSTANT(LIGHT_OMNI_SHADOW_DUAL_PARABOLOID);
|
||||
|
|
Loading…
Reference in New Issue