The Enabled
property of the VolumetricFogParameters
class indicates whether the fog system is currently active. This boolean property allows you to enable or disable the volumetric fog effect within the scene.
The Enabled
property of the VolumetricFogParameters
class indicates whether the fog system is currently active. This boolean property allows you to enable or disable the volumetric fog effect within the scene.
To use the Enabled
property, you need to have an instance of the VolumetricFogParameters
class. You can then set this property to true
to enable the fog or false
to disable it.
// Example of enabling the volumetric fog VolumetricFogParameters fogParameters = new VolumetricFogParameters(); fogParameters.Enabled = true; // Enable the fog // Example of disabling the volumetric fog fogParameters.Enabled = false; // Disable the fog