public readonly record struct InstanceCullSettingsWhat a view asks of a cell's instances.
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 FrustumThe view's frustum. Instances outside it are dropped.
public Vector3 ViewPositionWhere the view is, which the cull distances are measured from.
public float StartCullDistanceHow far out instances begin to fade. Beyond it they are still drawn.
public float EndCullDistanceHow far out instances are gone entirely.
public float DensityScaleWhat fraction of the instances to keep, 0…1, for a scalability setting.
public bool FadeWhether to fade instances in over the band before they are culled.
Methods (1)
public static InstanceCullSettings Everything(BoundingFrustum frustum, Vector3 viewPosition)Keeps everything a frustum contains, with no distance limit and no thinning.
Used by (5)
- FoliageCullParityTestsVixen.Rendering.Terrain.Tests
- FoliageRendererVixen.Rendering.Terrain
- GrassRendererVixen.Rendering.Terrain
- InstanceCullerVixen.Rendering
- InstanceCullingTestsVixen.Rendering.Tests