GrassKeys
public static class GrassKeysTyped keys for shader Grass.
Fields and properties (30)
public const string ShaderNameThe shader's name, as the effect system asks for it.
public static readonly PermutationKey<bool> CrossFadeAffects the generated code, so a distinct value is a distinct variant.
public static readonly ParameterKey[] UsedPermutationKeysThe permutation keys that actually change the generated code.
public static readonly ParameterKey<TextureViewHandle> AlbedoMapset 2, binding 1.
public const int AlbedoMapSetWhich descriptor set holds albedoMap.
public const uint AlbedoMapBindingWhich binding within set 2 albedoMap occupies.
public static readonly ParameterKey<SamplerHandle> AlbedoSamplerset 2, binding 2.
public const int AlbedoSamplerSetWhich descriptor set holds albedoSampler.
public const uint AlbedoSamplerBindingWhich binding within set 2 albedoSampler occupies.
public static readonly ParameterKey<BufferHandle> Bladesset 2, binding 3.
public const int BladesSetWhich descriptor set holds blades.
public const uint BladesBindingWhich binding within set 2 blades occupies.
public const int VertexAttributeCountHow many attributes the vertex stage takes from a buffer.
public const uint PositionLocationWhich location the vertex stage reads position from.
public const uint NormalLocationWhich location the vertex stage reads normal from.
public const uint TexcoordLocationWhich location the vertex stage reads texcoord from.
public static readonly ParameterKey<Matrix4x4> ViewProjectionviewProjection at byte 0.
public static readonly ParameterKey<Vector3> ViewPositionviewPosition at byte 64.
public static readonly ParameterKey<float> Timetime at byte 76.
public static readonly ParameterKey<Vector2> WindDirectionwind.direction at byte 80.
public static readonly ParameterKey<float> WindStrengthwind.strength at byte 88.
public static readonly ParameterKey<float> WindFrequencywind.frequency at byte 92.
public static readonly ParameterKey<float> WindSpeedwind.speed at byte 96.
public static readonly ParameterKey<float> WindFlutterwind.flutter at byte 100.
public static readonly ParameterKey<float> WindHeightwind.height at byte 104.
public static readonly ParameterKey<Vector2> TintRangetintRange at byte 112.
public static readonly ParameterKey<Vector2> FadeRangefadeRange at byte 120.
public const int ConstantBufferSizeThe uniform block's size in bytes — what to allocate.
public const int ConstantBufferSetWhich descriptor set holds the uniform block.
public const uint ConstantBufferBindingWhich binding within set 2 the uniform block occupies.
Used by (1)
- GrassDrawPassVixen.Rendering.Terrain