Vixen
02b45cc4

FogKeys

class
csharp
public static class FogKeys

Typed keys for shader Fog.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (28)

  • public const string ShaderName

    The shader's name, as the effect system asks for it.

  • public static readonly PermutationKey<int> Mode

    Affects the generated code, so a distinct value is a distinct variant.

  • public static readonly PermutationKey<bool> HeightFalloff

    Affects the generated code, so a distinct value is a distinct variant.

  • public static readonly PermutationKey<bool> SunScattering

    Affects the generated code, so a distinct value is a distinct variant.

  • public static readonly ParameterKey[] UsedPermutationKeys

    The permutation keys that actually change the generated code.

  • public static readonly ParameterKey<TextureViewHandle> Source

    set 2, binding 1.

  • public const int SourceSet

    Which descriptor set holds source.

  • public const uint SourceBinding

    Which binding within set 2 source occupies.

  • public static readonly ParameterKey<TextureViewHandle> DepthBuffer

    set 2, binding 2.

  • public const int DepthBufferSet

    Which descriptor set holds depthBuffer.

  • public const uint DepthBufferBinding

    Which binding within set 2 depthBuffer occupies.

  • public static readonly ParameterKey<SamplerHandle> LinearSampler

    set 2, binding 3.

  • public const int LinearSamplerSet

    Which descriptor set holds linearSampler.

  • public const uint LinearSamplerBinding

    Which binding within set 2 linearSampler occupies.

  • public static readonly ParameterKey<Matrix4x4> InverseViewProjection

    inverseViewProjection at byte 0.

  • public static readonly ParameterKey<Vector3> CameraPosition

    cameraPosition at byte 64.

  • public static readonly ParameterKey<Vector3> FogColor

    fogColor at byte 80, declared 0.5, 0.6, 0.7.

  • public static readonly ParameterKey<float> Density

    density at byte 92, declared 0.02.

  • public static readonly ParameterKey<float> FogStart

    fogStart at byte 96, declared 10.

  • public static readonly ParameterKey<float> FogEnd

    fogEnd at byte 100, declared 200.

  • public static readonly ParameterKey<float> FogHeight

    fogHeight at byte 104, declared 0.

  • public static readonly ParameterKey<float> HeightFalloffRate

    heightFalloffRate at byte 108, declared 0.05.

  • public static readonly ParameterKey<Vector3> SunDirection

    sunDirection at byte 112, declared 0, -1, 0.

  • public static readonly ParameterKey<Vector3> SunColor

    sunColor at byte 128, declared 1, 0.9, 0.7.

  • public static readonly ParameterKey<float> SunAnisotropy

    sunAnisotropy at byte 140, declared 0.7.

  • public const int ConstantBufferSize

    The uniform block's size in bytes — what to allocate.

  • public const int ConstantBufferSet

    Which descriptor set holds the uniform block.

  • public const uint ConstantBufferBinding

    Which binding within set 2 the uniform block occupies.

Used by (2)

  • FogRendererVixen.Rendering.PostFx
  • PostEffectTestsVixen.Rendering.PostFx.Tests