Class WorldFogInfo
Namespace: ValveResourceFormat.Renderer.World
Assembly: Renderer.dll
Represents the fog data for the current scene.
public class WorldFogInfoInheritance
object ← WorldFogInfo
Properties
CubeFogActive
Gets or sets a value indicating whether cubemap fog is active.
public bool CubeFogActive { get; set; }Property Value
bool
CubemapFog
Gets or sets the active cubemap fog parameters.
public SceneCubemapFog? CubemapFog { get; set; }Property Value
GradientFog
Gets or sets the active gradient fog parameters.
public SceneGradientFog? GradientFog { get; set; }Property Value
GradientFogActive
Gets or sets a value indicating whether gradient fog is active.
public bool GradientFogActive { get; set; }Property Value
bool
LinearFog
Gets or sets the fog of an env_fog_controller the 2D sky is fogged with, or null to leave the sky without it.
public LinearFog? LinearFog { get; set; }Property Value
Methods
SetFogUniforms(ViewConstants, bool, FogSpace)
Copies the active fog state into the provided view constants buffer.
public void SetFogUniforms(ViewConstants viewConstants, bool viewerFogEnabled, FogSpace fogSpace)Parameters
viewConstants ViewConstants
The view constants buffer to update.
viewerFogEnabled bool
Whether fog rendering is enabled in the viewer settings.
fogSpace FogSpace
Converts authored distances and heights into the view's space.

