Plush

FogSettings#

PlushEngine · Type index

Namespace: PlushEngine

Height and distance fog applied after shading: density at Height falling off exponentially above it (Falloff per metre), starting Start metres from the camera and reaching at most MaxDistance. Fogged light is Color plus the sun scattered toward the viewer (Henyey-Greenstein with Anisotropy, scaled by SunScatter), and with Shafts the sun's share is shadowed along the ray by the directional shadow map, which gives light shafts through openings.

public sealed record FogSettings(float Density = 0, float Height = 0, float Falloff = .15f, string Color = "#8E97A5", float SunScatter = 1, float Anisotropy = .6f, bool Shafts = true, float Start = 0, float MaxDistance = 120)

Record properties#

PropertyTypeAccessConstructor default
Densityfloatget; init;0
Heightfloatget; init;0
Fallofffloatget; init;.15f
Colorstringget; init;"#8E97A5"
SunScatterfloatget; init;1
Anisotropyfloatget; init;.6f
Shaftsboolget; init;true
Startfloatget; init;0
MaxDistancefloatget; init;120

Source#