Vixen
02b45cc4

GrassKeys

class
csharp
public static class GrassKeys

Typed keys for shader Grass.

Read the guide page for this →

Fields and properties (30)

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

    viewProjection at byte 0.

  • public static readonly ParameterKey<Vector3> ViewPosition

    viewPosition at byte 64.

  • public static readonly ParameterKey<float> Time

    time at byte 76.

  • public static readonly ParameterKey<Vector2> WindDirection

    wind.direction at byte 80.

  • public static readonly ParameterKey<float> WindStrength

    wind.strength at byte 88.

  • public static readonly ParameterKey<float> WindFrequency

    wind.frequency at byte 92.

  • public static readonly ParameterKey<float> WindSpeed

    wind.speed at byte 96.

  • public static readonly ParameterKey<float> WindFlutter

    wind.flutter at byte 100.

  • public static readonly ParameterKey<float> WindHeight

    wind.height at byte 104.

  • public static readonly ParameterKey<Vector2> TintRange

    tintRange at byte 112.

  • public static readonly ParameterKey<Vector2> FadeRange

    fadeRange at byte 120.

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

  • GrassDrawPassVixen.Rendering.Terrain