Description
The DistanceFalloffExponent
property of the GradientFogController
class determines the rate at which the fog density decreases with distance. This property is a float
value that influences how quickly the fog fades out as the distance from the camera increases. A higher value results in a steeper falloff, meaning the fog will become less dense more quickly as distance increases.
Usage
To use the DistanceFalloffExponent
property, you can set it to a desired float value to control the fog's distance falloff behavior. This property is particularly useful when you want to fine-tune the visual appearance of fog in your scene, ensuring that it blends naturally with the environment.
Example usage:
GradientFogController fogController = new GradientFogController();
fogController.DistanceFalloffExponent = 2.0f; // Sets a steeper falloff for the fog
Example
GradientFogController fogController = new GradientFogController();
fogController.DistanceFalloffExponent = 2.0f; // Sets a steeper falloff for the fog