Description
The StartDistance
property of the CubemapFogController
class specifies the distance from the player at which the fog effect begins to fade in. This property is crucial for defining how the fog interacts with the player's environment, allowing for a gradual transition from clear visibility to foggy conditions.
Usage
To use the StartDistance
property, you need to have an instance of the CubemapFogController
class. You can set this property to a float
value that represents the desired starting distance for the fog effect. This value should be greater than or equal to zero.
Example
// Create an instance of CubemapFogController
CubemapFogController fogController = new CubemapFogController();
// Set the start distance for the fog effect
fogController.StartDistance = 50.0f;
// This will make the fog start fading in at 50 units away from the player.