Vixen
dd8b0a81
csharp
public record class FogAsset

Distance and height fog, reconstructed from depth.

Read the guide page for this →

Fields and properties (23)

  • public string Name

    The node's name, for debug groups and for a human reading the file.

  • public bool Enabled

    Whether the node runs.

  • public string Source

    The image it fogs.

  • public string Depth

    The depth it reconstructs world positions from.

  • public string View

    The view whose camera the reconstruction uses.

  • public string Output

    The name the result is published under.

  • public PixelFormat Format

    The format of the target it declares.

  • public int Mode

    0 linear, 1 exponential, 2 exponential squared.

  • public bool HeightFalloff

    Whether density falls off with height.

  • public bool SunScattering

    Whether the fog brightens towards the sun.

  • public Vector3 Colour

    What it looks like away from the sun, as a radiance in cd/m².

  • public float Density

    How thick it is.

  • public float Start

    Where linear fog begins, in metres.

  • public float End

    Where linear fog is total, in metres.

  • public float Height

    The altitude the authored density holds at, in world units.

  • public float HeightFalloffRate

    How fast density thins above Height, per world unit.

  • public Vector3 SunDirection

    Which way the light travels.

  • public Vector3 SunColour

    What it looks like straight down-sun, as a radiance in cd/m² — Colour plus the sun's illuminance in lux.

  • public float SunAnisotropy

    Henyey–Greenstein anisotropy. Air is forward-scattering, around 0.7.

  • public string Volume

    The marched volume a !VolumetricFog node filled, or empty for the falloff alone.

  • public float VolumeNear

    The volume's near plane, far plane and slice count — the dispatch's own three.

  • public float VolumeFar
  • public int VolumeSlices

Used by (6)

  • PostEffectFactoryVixen.Rendering.PostFx
  • PostEffectTestsVixen.Rendering.PostFx.Tests
  • StandardFrameVixen.Rendering.PostFx
  • StandardFrameTestsVixen.Rendering.PostFx.Tests
  • TypeRegistrationVixen.Rendering.PostFx
  • Vixen_Rendering_PostFx_FogAssetSerializerVixen.Rendering.PostFx