Vixen
02b45cc4
csharp
public readonly record struct FoliageInstance

Where one instance stands.

Read the guide page for this →

Remarks

⚠ A uniform scale, not a vector, and that is a decision rather than an omission. A non-uniform scale on a tree is a tree somebody has squashed, and it costs a transform that is no longer a similarity — which means its bounding sphere is no longer a sphere scaled by one number, and the per-instance cull's radius test stops being exact. Every reference toolset offers uniform scale for foliage for the same reason.

Fields and properties (4)

  • public Vector3 Position

    In world space.

  • public Quaternion Rotation

    Which way it faces.

  • public float Scale

    How big it is, uniformly.

  • public Matrix4x4 Transform

    The instance as a transform, which is what an instancing feature uploads.

Methods (1)

  • public FoliageInstance(Vector3 Position, Quaternion Rotation, float Scale)

    Where one instance stands.

Used by (26)

  • FoliageBlockerTestsVixen.Rendering.Terrain.Tests
  • FoliageChunkVixen.Foliage
  • FoliageCollisionTestsVixen.Foliage.Tests
  • FoliageCullInstanceRecordVixen.Rendering.Terrain
  • FoliageCullParityTestsVixen.Rendering.Terrain.Tests
  • FoliageGrowthVixen.Foliage
  • FoliageGrowthTestsVixen.Foliage.Tests
  • FoliageRendererVixen.Rendering.Terrain
  • FoliageScatterVixen.Foliage
  • FoliageScatterTestsVixen.Foliage.Tests
  • FoliageStoreVixen.Foliage
  • FoliageVolumeVixen.Foliage
  • FoliageVolumeTestsVixen.Foliage.Tests
  • GrassBladeVixen.Foliage
  • GrassDispatchTestsVixen.Rendering.Terrain.Tests
  • GrassInstanceRecordVixen.Rendering.Terrain
  • GrassRendererVixen.Rendering.Terrain
  • GrassScatterVixen.Foliage
  • GrassScatterTestsVixen.Foliage.Tests
  • PaletteRemovalTestsVixen.Foliage.Tests
  • TerrainSurfaceTestsVixen.Rendering.Terrain.Tests
  • FoliageEditVixen.Editor.Terrain
  • FoliageModeVixen.Editor.Terrain
  • FoliageModeTestsVixen.Editor.Terrain.Tests
  • FoliageMoveCommandVixen.Editor.Terrain
  • FoliageStrokeCommandVixen.Editor.Terrain