# Sandbox.Rendering.FogSetup

A camera's fog settings. A zero weight preserves both legacy fog layers;
an enabled override replaces their combined result before volumetric fog is applied.
Use `default(FogSetup)` to inherit legacy fog; `new FogSetup()` creates a full-weight override.

- Kind: struct
- Namespace: `Sandbox.Rendering`
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Constructors

- [`FogSetup`](/api/Sandbox.Rendering.FogSetup/.ctor): Creates a full-weight exponential fog override with default settings. A zero-initialized default(FogSetup) instead preserves legacy fog.

## Properties

- [`AttenuationDistance`](/api/Sandbox.Rendering.FogSetup/AttenuationDistance): Distance removing 63.2 percent of background light, in world units.
- [`BaseHeight`](/api/Sandbox.Rendering.FogSetup/BaseHeight): World height where the height gradient reaches full opacity.
- [`Color`](/api/Sandbox.Rendering.FogSetup/Color): Distance fog color and sky tint. Alpha is ignored; use MaximumOpacity instead.
- [`DistanceEnabled`](/api/Sandbox.Rendering.FogSetup/DistanceEnabled): Whether distance fog contributes, independently of height fog.
- [`Enabled`](/api/Sandbox.Rendering.FogSetup/Enabled): Whether this override adds fog. A disabled override with nonzero weight suppresses legacy fog.
- [`EndDistance`](/api/Sandbox.Rendering.FogSetup/EndDistance): Full-fog distance for the artistic distance model, in world units.
- [`FalloffExponent`](/api/Sandbox.Rendering.FogSetup/FalloffExponent): Exponent applied to the artistic distance ramp.
- [`HeightColor`](/api/Sandbox.Rendering.FogSetup/HeightColor): Independent height fog color, with alpha controlling its maximum opacity.
- [`HeightEnabled`](/api/Sandbox.Rendering.FogSetup/HeightEnabled): Enables the independent height gradient.
- [`HeightExponent`](/api/Sandbox.Rendering.FogSetup/HeightExponent): Curve applied to the height gradient.
- [`HeightFalloff`](/api/Sandbox.Rendering.FogSetup/HeightFalloff): Signed world distance from full height fog to clear. Zero creates a hard boundary.
- [`HeightSkyBlur`](/api/Sandbox.Rendering.FogSetup/HeightSkyBlur): Cubemap blur, from the sharpest mip at zero to the coarsest mip at one.
- [`HeightSkyContribution`](/api/Sandbox.Rendering.FogSetup/HeightSkyContribution): Blend between constant color and the tinted cubemap, from zero to one.
- [`HeightSkyEncoding`](/api/Sandbox.Rendering.FogSetup/HeightSkyEncoding): Color encoding stored in the sky cubemap. Ordinary HDR and RGB textures use Rgb.
- [`HeightSkyRotation`](/api/Sandbox.Rendering.FogSetup/HeightSkyRotation): Rotation from world directions into the sky cubemap's local space.
- [`HeightSkyTexture`](/api/Sandbox.Rendering.FogSetup/HeightSkyTexture): Optional cubemap providing directional height fog color. Cube arrays use their first cube.
- [`MaxDistance`](/api/Sandbox.Rendering.FogSetup/MaxDistance): Distance used to evaluate sky fog, independent of the camera's far clip plane.
- [`MaximumOpacity`](/api/Sandbox.Rendering.FogSetup/MaximumOpacity): Upper limit on distance fog opacity, independent of color.
- [`Mode`](/api/Sandbox.Rendering.FogSetup/Mode): Distance attenuation model.
- [`SkyAffect`](/api/Sandbox.Rendering.FogSetup/SkyAffect): Additional opacity multiplier for sky pixels, from zero to one.
- [`SkyBlur`](/api/Sandbox.Rendering.FogSetup/SkyBlur): Cubemap blur, from the sharpest mip at zero to the coarsest mip at one.
- [`SkyBlurDistanceEnabled`](/api/Sandbox.Rendering.FogSetup/SkyBlurDistanceEnabled): Use SkyBlur near the camera and SkyBlurFar beyond SkyBlurDistanceRange.
- [`SkyBlurDistanceRange`](/api/Sandbox.Rendering.FogSetup/SkyBlurDistanceRange): Start and end distances of the sky blur ramp, in world units.
- [`SkyBlurFar`](/api/Sandbox.Rendering.FogSetup/SkyBlurFar): Far sky blur, from the sharpest mip at zero to the coarsest mip at one.
- [`SkyContribution`](/api/Sandbox.Rendering.FogSetup/SkyContribution): Blend between constant color and the tinted cubemap, from zero to one.
- [`SkyEncoding`](/api/Sandbox.Rendering.FogSetup/SkyEncoding): Color encoding stored in the sky cubemap. Ordinary HDR and RGB textures use Rgb.
- [`SkyRotation`](/api/Sandbox.Rendering.FogSetup/SkyRotation): Rotation from world directions into the sky cubemap's local space.
- [`SkyTexture`](/api/Sandbox.Rendering.FogSetup/SkyTexture): Optional cubemap providing directional fog color. Cube arrays use their first cube.
- [`StartDistance`](/api/Sandbox.Rendering.FogSetup/StartDistance): Clear distance before fog starts, in world units.
- [`SunFadeDistance`](/api/Sandbox.Rendering.FogSetup/SunFadeDistance): Distance over which sun lighting smoothly fades in. Zero gives a hard start; negative values reverse the fade.
- [`SunIntensity`](/api/Sandbox.Rendering.FogSetup/SunIntensity): Multiplier for the dominant sun's color, independent of its volumetric fog strength.
- [`SunLightingEnabled`](/api/Sandbox.Rendering.FogSetup/SunLightingEnabled): Add an unshadowed glow from the view's dominant sun to distance fog.
- [`SunLobeWidth`](/api/Sandbox.Rendering.FogSetup/SunLobeWidth): Angle from the sun at half intensity, in degrees.
- [`SunSaturation`](/api/Sandbox.Rendering.FogSetup/SunSaturation): Sun glow saturation. Zero is greyscale, one preserves the light's color, and higher values strengthen it.
- [`SunStartDistance`](/api/Sandbox.Rendering.FogSetup/SunStartDistance): Distance from the camera where the sun glow starts fading in, in world units.
- [`Weight`](/api/Sandbox.Rendering.FogSetup/Weight): Influence over the legacy gradient and cubemap fog result, from zero to one.
