Sandbox.Light/FogInfluence FogMode { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The FogMode property of the Light class specifies how the light interacts with fog in the scene. It determines the influence of fog on the light, affecting how the light is rendered in foggy environments.

Usage

To use the FogMode property, you need to have an instance of the Light component. You can then set or get the FogMode to control the fog influence on the light.

Example

// Example of setting the FogMode property
Light myLight = new Light();
myLight.FogMode = FogInfluence.Linear; // Set the fog influence mode to Linear

// Example of getting the FogMode property
FogInfluence currentFogMode = myLight.FogMode;
// Use currentFogMode as needed