Description
The VerticalFalloffExponent
property of the GradientFogController
class determines the rate at which the fog's density decreases vertically. This property is a float
value that influences how quickly the fog fades out as it moves away from the specified start height. A higher value results in a steeper falloff, meaning the fog will dissipate more quickly with height.
Usage
To use the VerticalFalloffExponent
property, you can set it to a desired float value to control the vertical density falloff of the fog. This is useful for creating realistic atmospheric effects where fog density changes with altitude.
Example
// Example of setting the VerticalFalloffExponent property
GradientFogController fogController = new GradientFogController();
fogController.VerticalFalloffExponent = 2.0f; // Sets a steeper vertical falloff
// Use the fogController in your scene to apply the fog effect
Scene.Current.AddComponent(fogController);