pub type FogSettings = DistanceFog;
👎Deprecated since 0.15.0: Renamed to
DistanceFog
Aliased Type§
struct FogSettings {
pub color: Color,
pub directional_light_color: Color,
pub directional_light_exponent: f32,
pub falloff: FogFalloff,
}
Fields§
§color: Color
The color of the fog effect.
Tip: The alpha channel of the color can be used to “modulate” the fog effect without changing the fog falloff mode or parameters.
directional_light_color: Color
Color used to modulate the influence of directional light colors on the fog, where the view direction aligns with each directional light direction, producing a “glow” or light dispersion effect. (e.g. around the sun)
Use Color::NONE
to disable the effect.
directional_light_exponent: f32
The exponent applied to the directional light alignment calculation. A higher value means a more concentrated “glow”.
falloff: FogFalloff
Determines which falloff mode to use, and its parameters.