Vixen
c7401864

TerrainLitCascadesElement

struct
csharp
public struct TerrainLitCascadesElement

One element of TerrainLit.cascades.

Read the guide page for this →

Fields and properties (6)

  • public Matrix4x4 ViewProjection

    cascades[].viewProjection — 64 bytes at 0 into the element.

  • public float Split

    cascades[].split — 4 bytes at 64 into the element.

  • public float DepthScale

    cascades[].depthScale — 4 bytes at 68 into the element.

  • public const int Count

    How many elements the shader declared room for.

  • public const int Stride

    Bytes from one element to the next.

  • public const int BaseOffset

    Byte offset of element zero within the block.

Methods (1)

  • public readonly void Write(Span<byte> buffer, int index)

    Writes this element into slot .

Used by (5)

  • FoliageDrawPassVixen.Rendering.Terrain
  • GrassDrawPassVixen.Rendering.Terrain
  • TerrainFrameLightingVixen.Rendering.Terrain
  • TerrainRendererVixen.Rendering.Terrain
  • TerrainSceneRendererVixen.Rendering.Terrain