Expand description
Vegetation system — tree/grass/rock placement, LOD, wind, seasonal changes.
Handles placement of trees, grass clusters, and rocks based on heightmap and biome data. Includes wind simulation, seasonal variation, procedural L-system tree skeletons, and frustum/distance culling.
Structs§
- Forest
Generator - Specialized forest generator that creates realistic forest patterns.
- Grass
Blade - Per-blade grass animation state.
- Grass
Cluster - A cluster of grass blades sharing placement and animation parameters.
- Grass
Field - Collection of grass clusters over a terrain region.
- Grass
Patch - A patch of individually simulated grass blades.
- Impostor
Billboard - Represents a billboard impostor for far-distance rendering.
- Leaf
Color System - Computes leaf colors based on tree type, season, and variation.
- Leaf
Particle - Represents a single falling leaf particle used for visual effects.
- Leaf
Particle Emitter - Emitter that spawns leaf particles from tree canopies.
- Leaf
Particle System - Manages a pool of leaf particles across an entire scene.
- Placement
Constraint - Placement constraint: the cell at (x, z) in the heightmap must satisfy slope and altitude criteria for the given tree type.
- Rock
Cluster - A cluster of rocks using Poisson disk sampling.
- Rock
Placement - A placed rock or boulder.
- Snow
Accumulation - Computes snow accumulation on vegetation based on slope and temperature.
- Terrain
Aware Placement - Filters a list of candidate positions against a heightmap using
PlacementConstraint. - Tree
Params - Parameters describing a single tree’s shape.
- Tree
Segment - A single segment in a procedural tree skeleton.
- Tree
Skeleton - Procedural tree skeleton generated by an L-system.
- Undergrowth
System - Generates undergrowth (ferns, mushrooms, flowers) beneath forest canopy.
- Vegetation
Aabb - Axis-aligned bounding box used for frustum / region culling.
- Vegetation
Atlas - Manages texture atlas slots for vegetation impostor billboards.
- Vegetation
Cluster - A group of same-species instances sharing a spatial cluster for efficient culling.
- Vegetation
CsvExporter - CSV exporter for spreadsheet analysis.
- Vegetation
Density Map - A 2D map of vegetation density values.
- Vegetation
Grid - Spatial grid for O(1) region queries of vegetation instances.
- Vegetation
Heat Map - 2-D grid counting how many vegetation instances fall in each cell.
- Vegetation
Instance - A single placed vegetation object (tree, grass cluster, rock).
- Vegetation
Lod - LOD configuration for a vegetation type.
- Vegetation
ObjExporter - Minimal OBJ-like text exporter for vegetation instances (positions only).
- Vegetation
Painter - Manual vegetation painting API for terrain editors.
- Vegetation
Query - Query API for finding vegetation near a position.
- Vegetation
Serializer - Serializes and deserializes vegetation data for saving/loading.
- Vegetation
System - Top-level manager for all vegetation instances.
- Wind
System - Models global wind for vegetation animation.
Enums§
- Tree
Type - Tree species variants.
- Vegetation
Kind - What kind of vegetation this instance is.
Functions§
- generate_
impostors - Generate billboard impostors from a set of tree instances.