float EndDistance { get; set; }

robot_2Generated
code_blocksInput

Description

The EndDistance property of the GradientFogController struct specifies the distance at which the fog effect ends. This property is used to control the range of the fog effect in a scene, allowing developers to create realistic atmospheric effects by defining how far the fog extends from the camera or a specific point in the scene.

Usage

To use the EndDistance property, you need to have an instance of the GradientFogController struct. You can then set or get the EndDistance to control the fog's end distance. This property is a float value representing the distance in world units.

Example usage:

GradientFogController fogController = new GradientFogController();
fogController.EndDistance = 1000.0f; // Set the fog to end at 1000 units
float currentEndDistance = fogController.EndDistance; // Retrieve the current end distance

Example

GradientFogController fogController = new GradientFogController();
fogController.EndDistance = 1000.0f; // Set the fog to end at 1000 units
float currentEndDistance = fogController.EndDistance; // Retrieve the current end distance