Description
The FogLighting
property of the SceneLight
class specifies the mode of fog lighting applied to the scene light. This property determines how the light interacts with fog in the scene, affecting the visual appearance of the light when fog is present.
Usage
To use the FogLighting
property, you need to have an instance of the SceneLight
class. You can then get or set the FogLighting
property to control the fog lighting mode. The property accepts values from the FogLightingMode
enumeration, which defines the available modes for fog lighting.
Example
// Create a new SceneLight instance
SceneLight myLight = new SceneLight();
// Set the fog lighting mode to a specific mode
myLight.FogLighting = SceneLight.FogLightingMode.Linear;
// Retrieve the current fog lighting mode
var currentFogMode = myLight.FogLighting;
// Output the current fog lighting mode
// Note: Use a logging system or UI element to display the value
// Example: Log.Info($"Current Fog Lighting Mode: {currentFogMode}");