Vixen
caa30e12
csharp
public record class VegetationQuality

Vegetation and terrain-surface budgets for one tier.

Read the guide page for this →

Remarks

Every entry lands on a parameter that exists: the density scales are the scatter kernels' own multipliers (GrassScatter's densityScale, and the same fold over FoliageType.Density), the cull scales multiply each type's authored cull distances, the cell counts are GrassResidency's and the foliage streamer's capacities, the near range is TerrainLodRanges.NearRange, and the streaming pool is TerrainStreamer's byte budget.

⚠ They reach those renderers by hand-off, not by reference — and the hand-off is AppGraphics'. Vixen.Rendering.Terrain cannot see this assembly, because the dependency runs the other way, so the terrain factory declares its own plain-numbered copy (TerrainVegetationQuality) and the host folds a resolved tier into TerrainFactory.Vegetation before it builds the frame. A knob added here is not wired until that copy grows the same field and the host's fold assigns it: both halves, or the number is carried and dropped.

Fields and properties (8)

  • public float? GrassDensityScale

    A multiplier on every grass type's blades-per-square-metre.

  • public float? GrassCullDistanceScale

    A multiplier on every grass type's authored cull distances.

  • public int? GrassResidentCells

    How many grass cells stay resident around the camera.

  • public float? FoliageDensityScale

    A multiplier on every foliage type's instances-per-square-metre.

  • public float? FoliageCullDistanceScale

    A multiplier on every foliage type's authored cull distances.

  • public int? FoliageCellBudget

    How many foliage cells the streamer keeps resident.

  • public float? TerrainLodNearRange

    Metres of full-detail terrain before the first LOD step.

  • public int? TerrainStreamingMegabytes

    Megabytes of staged terrain tile chains a frame may hold.

Used by (8)

  • QualityTierOverridesVixen.Rendering.PostFx
  • RenderQualityVixen.Rendering.PostFx
  • RenderQualityTestsVixen.Rendering.PostFx.Tests
  • TerrainNodeTestsVixen.Rendering.Terrain.Tests
  • TypeRegistrationVixen.Rendering.PostFx
  • Vixen_Rendering_PostFx_QualityTierOverridesSerializerVixen.Rendering.PostFx
  • Vixen_Rendering_PostFx_VegetationQualitySerializerVixen.Rendering.PostFx
  • HostedRendererTestsVixen.App.Tests