Vixen
c7401864

GrassVelocityKeys

class
csharp
public static class GrassVelocityKeys

Typed keys for shader GrassVelocity.

Read the guide page for this →

Fields and properties (33)

  • public const string ShaderName

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

  • public static readonly PermutationKey<bool> CrossFade

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

    set 2, binding 1.

  • public const int AlbedoMapSet

    Which descriptor set holds albedoMap.

  • public const uint AlbedoMapBinding

    Which binding within set 2 albedoMap occupies.

  • public static readonly ParameterKey<SamplerHandle> AlbedoSampler

    set 2, binding 2.

  • public const int AlbedoSamplerSet

    Which descriptor set holds albedoSampler.

  • public const uint AlbedoSamplerBinding

    Which binding within set 2 albedoSampler occupies.

  • public static readonly ParameterKey<BufferHandle> Blades

    set 2, binding 3.

  • public const int BladesSet

    Which descriptor set holds blades.

  • public const uint BladesBinding

    Which binding within set 2 blades occupies.

  • public const int VertexAttributeCount

    How many attributes the vertex stage takes from a buffer.

  • public const uint PositionLocation

    Which location the vertex stage reads position from.

  • public const uint NormalLocation

    Which location the vertex stage reads normal from.

  • public const uint TexcoordLocation

    Which location the vertex stage reads texcoord from.

  • public static readonly ParameterKey<Matrix4x4> PreviousViewProjection

    previousViewProjection at byte 0.

  • public static readonly ParameterKey<float> PreviousTime

    previousTime at byte 64.

  • public static readonly ParameterKey<Matrix4x4> ViewProjection

    viewProjection at byte 80.

  • public static readonly ParameterKey<Vector3> ViewPosition

    viewPosition at byte 144.

  • public static readonly ParameterKey<float> Time

    time at byte 156.

  • public static readonly ParameterKey<Vector2> WindDirection

    wind.direction at byte 160.

  • public static readonly ParameterKey<float> WindStrength

    wind.strength at byte 168.

  • public static readonly ParameterKey<float> WindFrequency

    wind.frequency at byte 172.

  • public static readonly ParameterKey<float> WindSpeed

    wind.speed at byte 176.

  • public static readonly ParameterKey<float> WindFlutter

    wind.flutter at byte 180.

  • public static readonly ParameterKey<float> WindHeight

    wind.height at byte 184.

  • public static readonly ParameterKey<float> AlphaCutoff

    alphaCutoff at byte 192, declared 0.5.

  • public static readonly ParameterKey<Vector2> TintRange

    tintRange at byte 200.

  • public static readonly ParameterKey<Vector2> FadeRange

    fadeRange at byte 208.

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

  • GrassVelocityPassVixen.Rendering.Terrain