Add Environment properties to control fog rendering on background sky
Values lower than 1.0 can be used to make the fog rendering not fully obstruct the sky. This can be desired when using fog as a purely atmospheric effect, without intending to use fog for open world fog fading. When set to 0.0, fog rendering behavior will be similar to Godot 3.x where sky rendering was never affected by fog.
This commit is contained in:
parent
de5f13e935
commit
699e9f7966
16 changed files with 144 additions and 50 deletions
|
|
@ -1129,13 +1129,14 @@ public:
|
|||
PASS1RC(uint64_t, environment_get_auto_exposure_version, RID)
|
||||
|
||||
// Fog
|
||||
PASS9(environment_set_fog, RID, bool, const Color &, float, float, float, float, float, float)
|
||||
PASS10(environment_set_fog, RID, bool, const Color &, float, float, float, float, float, float, float)
|
||||
|
||||
PASS1RC(bool, environment_get_fog_enabled, RID)
|
||||
PASS1RC(Color, environment_get_fog_light_color, RID)
|
||||
PASS1RC(float, environment_get_fog_light_energy, RID)
|
||||
PASS1RC(float, environment_get_fog_sun_scatter, RID)
|
||||
PASS1RC(float, environment_get_fog_density, RID)
|
||||
PASS1RC(float, environment_get_fog_sky_affect, RID)
|
||||
PASS1RC(float, environment_get_fog_height, RID)
|
||||
PASS1RC(float, environment_get_fog_height_density, RID)
|
||||
PASS1RC(float, environment_get_fog_aerial_perspective, RID)
|
||||
|
|
@ -1144,7 +1145,7 @@ public:
|
|||
PASS1(environment_set_volumetric_fog_filter_active, bool)
|
||||
|
||||
// Volumentric Fog
|
||||
PASS13(environment_set_volumetric_fog, RID, bool, float, const Color &, const Color &, float, float, float, float, float, bool, float, float)
|
||||
PASS14(environment_set_volumetric_fog, RID, bool, float, const Color &, const Color &, float, float, float, float, float, bool, float, float, float)
|
||||
|
||||
PASS1RC(bool, environment_get_volumetric_fog_enabled, RID)
|
||||
PASS1RC(float, environment_get_volumetric_fog_density, RID)
|
||||
|
|
@ -1155,6 +1156,7 @@ public:
|
|||
PASS1RC(float, environment_get_volumetric_fog_length, RID)
|
||||
PASS1RC(float, environment_get_volumetric_fog_detail_spread, RID)
|
||||
PASS1RC(float, environment_get_volumetric_fog_gi_inject, RID)
|
||||
PASS1RC(float, environment_get_volumetric_fog_sky_affect, RID)
|
||||
PASS1RC(bool, environment_get_volumetric_fog_temporal_reprojection, RID)
|
||||
PASS1RC(float, environment_get_volumetric_fog_temporal_reprojection_amount, RID)
|
||||
PASS1RC(float, environment_get_volumetric_fog_ambient_inject, RID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue