Vixen
caa30e12

WaterKeys

class
csharp
public static class WaterKeys

Typed keys for shader Water.

Read the guide page for this →

Fields and properties (45)

  • public const string ShaderName

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

  • public static readonly PermutationKey<bool> Reflections

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

  • public static readonly PermutationKey<bool> Foam

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

  • public static readonly PermutationKey<bool> Tiled

    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> SceneColourCopy

    set 2, binding 1.

  • public const int SceneColourCopySet

    Which descriptor set holds sceneColourCopy.

  • public const uint SceneColourCopyBinding

    Which binding within set 2 sceneColourCopy occupies.

  • public static readonly ParameterKey<TextureViewHandle> SceneDepth

    set 2, binding 2.

  • public const int SceneDepthSet

    Which descriptor set holds sceneDepth.

  • public const uint SceneDepthBinding

    Which binding within set 2 sceneDepth occupies.

  • public static readonly ParameterKey<TextureViewHandle> WaterSurface

    set 2, binding 3.

  • public const int WaterSurfaceSet

    Which descriptor set holds waterSurface.

  • public const uint WaterSurfaceBinding

    Which binding within set 2 waterSurface occupies.

  • public static readonly ParameterKey<TextureViewHandle> WaterNormal

    set 2, binding 4.

  • public const int WaterNormalSet

    Which descriptor set holds waterNormal.

  • public const uint WaterNormalBinding

    Which binding within set 2 waterNormal occupies.

  • public static readonly ParameterKey<TextureViewHandle> ReflectionPlane

    set 2, binding 5.

  • public const int ReflectionPlaneSet

    Which descriptor set holds reflectionPlane.

  • public const uint ReflectionPlaneBinding

    Which binding within set 2 reflectionPlane occupies.

  • public static readonly ParameterKey<SamplerHandle> PointSampler

    set 2, binding 6.

  • public const int PointSamplerSet

    Which descriptor set holds pointSampler.

  • public const uint PointSamplerBinding

    Which binding within set 2 pointSampler occupies.

  • public static readonly ParameterKey<SamplerHandle> LinearSampler

    set 2, binding 7.

  • public const int LinearSamplerSet

    Which descriptor set holds linearSampler.

  • public const uint LinearSamplerBinding

    Which binding within set 2 linearSampler occupies.

  • public static readonly ParameterKey<BufferHandle> WaterTiles

    set 2, binding 8.

  • public const int WaterTilesSet

    Which descriptor set holds waterTiles.

  • public const uint WaterTilesBinding

    Which binding within set 2 waterTiles 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> Scattering

    scattering at byte 80, declared 0.03, 0.06, 0.09.

  • public static readonly ParameterKey<Vector3> Absorption

    absorption at byte 96, declared 0.35, 0.06, 0.02.

  • public static readonly ParameterKey<float> PhaseG

    phaseG at byte 108, declared 0.7.

  • public static readonly ParameterKey<Vector3> BehindScale

    behindScale at byte 112, declared 1, 1, 1.

  • public static readonly ParameterKey<Vector3> SunColour

    sunColour at byte 128, declared 1, 0.96, 0.9.

  • public static readonly ParameterKey<Vector3> SunDirection

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

  • public static readonly ParameterKey<Vector3> SkyColour

    skyColour at byte 160, declared 0.35, 0.45, 0.6.

  • public static readonly ParameterKey<float> SurfaceF0

    surfaceF0 at byte 172, declared 0.02.

  • public static readonly ParameterKey<Vector3> FoamColour

    foamColour at byte 176, declared 0.9, 0.93, 0.95.

  • public static readonly ParameterKey<Int2> TileCount

    tileCount at byte 192, declared 1, 1.

  • public static readonly ParameterKey<Int2> TargetSize

    targetSize at byte 200, declared 1, 1.

  • 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 (1)

  • WaterRendererVixen.Rendering.Water