Description
The HeightWidth
property of the CubemapFogController
class specifies the distance between the start of the height fog and the point where it becomes fully opaque. This property is crucial for controlling the vertical blending of fog in a scene. By adjusting this value, developers can simulate different atmospheric conditions, such as a gradual fog build-up from the ground up to a certain height.
Usage
To use the HeightWidth
property, simply set it to a float
value representing the desired distance in world units. A value of 0
will disable height-based blending, resulting in no vertical fog gradient.
Example
// Example of setting the HeightWidth property
CubemapFogController fogController = new CubemapFogController();
fogController.HeightWidth = 50.0f; // Sets the height fog to fully opaque at 50 units above the start height