float DistanceFalloffExponent { get; set; }

book_4_sparkGenerated
code_blocksInput

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 the distance increases.

Usage

To use the DistanceFalloffExponent property, you can set it to a desired value to control the fog's distance-based density falloff. This can be useful for creating atmospheric effects where the fog needs to dissipate at a specific rate over distance.

Example usage:

GradientFogController fogController = new GradientFogController();
fogController.DistanceFalloffExponent = 2.0f; // Sets a steeper falloff

Example

GradientFogController fogController = new GradientFogController();
fogController.DistanceFalloffExponent = 2.0f; // Sets a steeper falloff