Vixen
02b45cc4
csharp
public struct FoliageCullBatchRecord

One cell of one type, as FoliageCullBatch packs it.

Read the guide page for this →

Fields and properties (13)

  • public uint FirstInstance

    Where this batch's instances begin in the instance buffer.

  • public uint InstanceCount

    How many it has.

  • public uint LevelCount

    How many LOD levels it draws, 1…MaxLevels.

  • public uint Visible

    Whether the cell survived the host's first stage. Zero culls the whole batch.

  • public float Radius

    The radius of an instance at scale one.

  • public float StartCullDistance

    How far out instances begin to fade.

  • public float EndCullDistance

    How far out they are gone entirely.

  • public float DensityScale

    What fraction of them to keep, 0…1.

  • public float Lod0

    Where level 1 takes over, in metres.

  • public float Lod1

    And level 2.

  • public float Lod2

    And level 3.

  • public float Padding0

    Declared so the record is forty-eight bytes on both sides.

  • public static int SizeInBytes

    How many bytes one of these is.

Used by (3)

  • FoliageCullParityTestsVixen.Rendering.Terrain.Tests
  • FoliageCullPassVixen.Rendering.Terrain
  • FoliageCullPassTestsVixen.Rendering.Terrain.Tests