Vixen
02b45cc4
csharp
public readonly record struct InstanceCullSettings

What a view asks of a cell's instances.

Read the guide page for this →

Remarks

⚠ Nothing in here defaults usefully, and a zeroed one culls everything. That is the right way round — see Everything for the value that means "keep them all". A zero EndCullDistance reading as "no limit" would make a forgotten field into an unbounded draw, which is the expensive direction to be wrong in.

Fields and properties (6)

  • public BoundingFrustum Frustum

    The view's frustum. Instances outside it are dropped.

  • public Vector3 ViewPosition

    Where the view is, which the cull distances are measured from.

  • public float StartCullDistance

    How far out instances begin to fade. Beyond it they are still drawn.

  • public float EndCullDistance

    How far out instances are gone entirely.

  • public float DensityScale

    What fraction of the instances to keep, 0…1, for a scalability setting.

  • public bool Fade

    Whether to fade instances in over the band before they are culled.

Methods (1)

Used by (5)

  • FoliageCullParityTestsVixen.Rendering.Terrain.Tests
  • FoliageRendererVixen.Rendering.Terrain
  • GrassRendererVixen.Rendering.Terrain
  • InstanceCullerVixen.Rendering
  • InstanceCullingTestsVixen.Rendering.Tests