Vixen
02b45cc4
csharp
public struct FoliageCullInstanceRecord

One instance as the cull reads it, matching FoliageCullInstance in the shader.

Read the guide page for this →

Remarks

⚠ Thirty-two bytes, which is InstanceBytes. The stored form and the device form are the same layout on purpose: a volume's instances can be uploaded as they are, and a stride that disagreed would not fail — it would read one tree's rotation out of the next tree's position.

Fields and properties (4)

  • public Vector3 Position

    Where the instance stands, in world space.

  • public float Scale

    How big it is, uniformly.

  • public Quaternion Rotation

    Which way it faces, as (x, y, z, w).

  • public static int SizeInBytes

    How many bytes one of these is.

Methods (1)

Used by (2)

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