Description
The GlobalScale
property of the VolumetricFogController
class represents a scaling factor applied to the volumetric fog effect. This property is used to adjust the overall size and density of the fog within the scene, allowing for fine-tuning of the visual appearance of the fog effect.
Usage
To use the GlobalScale
property, you can get or set its value to control the scale of the volumetric fog. A higher value will increase the size and density of the fog, while a lower value will decrease it. This property is particularly useful when you need to adjust the fog effect to fit different scene scales or artistic requirements.
Example
// Example of setting the GlobalScale property
VolumetricFogController fogController = new VolumetricFogController();
fogController.GlobalScale = 1.5f; // Increase the fog scale
// Example of getting the GlobalScale property
float currentScale = fogController.GlobalScale;
// Use currentScale for further logic or adjustments