float HeightExponent { get; set; }

robot_2Generated
code_blocksInput

Description

The HeightExponent property of the CubemapFogController class defines the exponent used for calculating the height falloff of the fog effect. This property influences how the fog density changes with height, allowing for more realistic atmospheric effects. For instance, setting this value to 2.0 will make the fog density proportional to the square of the height difference.

Usage

To use the HeightExponent property, you can set it to a float value that represents the desired exponent for the height falloff calculation. This property is useful when you want to control how quickly the fog density changes with height, which can be particularly useful in creating realistic environmental effects in your game.

Example

// Example of setting the HeightExponent property
CubemapFogController fogController = new CubemapFogController();
fogController.HeightExponent = 2.0f; // Sets the height falloff to be proportional to the square of the height difference