Description
The VerticalFalloffExponent
property of the GradientFogController
class defines the rate at which the fog density decreases vertically. This property is a float
value that influences how quickly the fog fades out as it moves away from the specified StartHeight
and EndHeight
. 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 that represents the steepness of the vertical fog falloff. This property is useful for creating realistic atmospheric effects where fog density changes with altitude.
Example usage:
GradientFogController fogController = new GradientFogController();
fogController.VerticalFalloffExponent = 2.0f; // Sets a steeper vertical falloff
Example
GradientFogController fogController = new GradientFogController();
fogController.VerticalFalloffExponent = 2.0f; // Sets a steeper vertical falloff