float DrawDistance { get; set; }

robot_2Generated
code_blocksInput

Description

The DrawDistance property specifies the maximum distance at which the volumetric fog is rendered. This property is a float value representing the distance in world units. Adjusting this value can affect the performance and visual quality of the fog in your scene.

Usage

To use the DrawDistance property, you need to have an instance of the VolumetricFogParameters class. You can then get or set the draw distance as needed:

Example

// Create an instance of VolumetricFogParameters
VolumetricFogParameters fogParams = new VolumetricFogParameters();

// Set the draw distance to 1000 units
fogParams.DrawDistance = 1000.0f;

// Retrieve the current draw distance
float currentDrawDistance = fogParams.DrawDistance;