csharp
public struct FoliageCullInstanceRecordOne instance as the cull reads it, matching FoliageCullInstance in the shader.
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 PositionWhere the instance stands, in world space.
public float ScaleHow big it is, uniformly.
public Quaternion RotationWhich way it faces, as (x, y, z, w).
public static int SizeInBytesHow many bytes one of these is.
Methods (1)
public static FoliageCullInstanceRecord Of(in FoliageInstance instance)The record a stored instance is.
Used by (2)
- FoliageCullPassVixen.Rendering.Terrain
- FoliageCullPassTestsVixen.Rendering.Terrain.Tests