Skip to main content

Module ground_cover

Module ground_cover 

Expand description

Multi-Scale Semantic Ground Cover & Viewport LOD Governor.

Bridges persistent 10D ecological graph state with ephemeral WebGPU viewport realization:

  • Semantic Ecotope Patches: species mix, LAI, turgor $P_t$, moisture, trample vectors
  • 4-Tier Continuous LOD Hierarchy:
    • LOD 0 (0–8m): Cosserat Cubic Bézier blades
    • LOD 1 (8–25m): Stochastic clump ribbons
    • LOD 2 (25–80m): Volumetric heightfield shells
    • LOD 3 (>80m): SGGX anisotropic microflake BRDF
  • Camera-centered toroidal clipmap scrolling (zero heap re-allocation)
  • Megapixel Governor: screen-space solid-angle density clamping ($\le 1.5\times$ viewport pixels)

Structs§

EcotopePatch
A compact semantic ground-cover ecotope patch.
ToroidalGroundCoverClipmap
Zero-allocation toroidal clipmap buffer centered on the moving camera.

Enums§

GroundCoverLod
4-tier continuous representation level.

Constants§

TOROIDAL_GRID_DIM
TOROIDAL_TOTAL_CELLS

Functions§

spatial_hash_2d
Deterministic spatial hash generating consistent pseudo-random offsets from world position $(x, z)$.