Description
The FadeInEnd
property of the VolumetricFogParameters
class specifies the end distance where the fog fading effect concludes. This property is used to control the distance at which the fog effect fully transitions to its maximum density, providing a smooth visual transition in the scene.
Usage
To use the FadeInEnd
property, you need to have an instance of the VolumetricFogParameters
class. You can set this property to a float
value representing the distance from the camera where the fog effect should reach its full density.
Example
// Create an instance of VolumetricFogParameters
VolumetricFogParameters fogParams = new VolumetricFogParameters();
// Set the FadeInEnd property to define the end distance of the fog fade
fogParams.FadeInEnd = 1000.0f;
// Use the fog parameters in your scene setup
Scene.Current.SetFogParameters(fogParams);