Class WorldFogInfo
Namespace: ValveResourceFormat.Renderer.World
Assembly: Renderer.dll
Represents the fog data for the current scene.
csharp
public class WorldFogInfoInheritance
Properties
CubeFogActive
Gets or sets a value indicating whether cubemap fog is active.
csharp
public bool CubeFogActive { get; set; }Property Value
CubemapFog
Gets or sets the active cubemap fog parameters.
csharp
public SceneCubemapFog? CubemapFog { get; set; }Property Value
GradientFog
Gets or sets the active gradient fog parameters.
csharp
public SceneGradientFog? GradientFog { get; set; }Property Value
GradientFogActive
Gets or sets a value indicating whether gradient fog is active.
csharp
public bool GradientFogActive { get; set; }Property Value
Methods
SetFogUniforms(ViewConstants, bool)
Copies the active fog state into the provided view constants buffer.
csharp
public void SetFogUniforms(ViewConstants viewConstants, bool viewerFogEnabled)Parameters
viewConstants ViewConstants
The view constants buffer to update.
viewerFogEnabled bool
Whether fog rendering is enabled in the viewer settings.

