Description
The Scattering
property of the VolumetricFogParameters
class represents the scattering value used in volumetric fog calculations. This value influences how light is scattered within the fog, affecting the overall appearance and density of the fog in the scene.
Usage
To adjust the scattering effect of volumetric fog in your scene, set the Scattering
property to a desired float
value. A higher value will result in more light being scattered, creating a denser fog effect, while a lower value will result in less scattering and a clearer view through the fog.
Example
// Example of setting the Scattering property
VolumetricFogParameters fogParams = new VolumetricFogParameters();
fogParams.Scattering = 0.5f; // Set the scattering value to 0.5
// Use fogParams in your scene setup
Scene.Current.AddComponent(fogParams);