AcresDenseGrass.h#
Game/Source/Acres/AcresDenseGrass.h Generated
Dense short grass near the main view: grass choice A (the owner chose A on 19 Nov 2026).
On by default. -NoDenseGrass turns it off. The verges and lawns (the surface map's class SurfaceGrass) of the survey tile get patches of the owner's CGAxis short grass (/Game/ACRE/Vegetation/Meshes/ShortGrass/SM_ShortGrass, 1.7 m across, 0.11 m high, single blades; Tools/Assets/Unreal/import_trees.py, part grass) within RadiusM of the main view. The patches are for the main view only: - hidden in every scene capture (the sensor cameras are scene captures), - not in the ray-tracing scene (the GPU LiDAR traces it), - no collision, no shadow, no Lumen or distance-field lighting (the sensor views stay as they are; a shadow would reach a camera picture). The grass lanes keep their own look (their wheel paths are flattened grass and bare soil, AcresAcreLayer.ush).
State: the cell of the view on a CellM grid. When the view goes into another cell, Update puts the patches again for the new cell, in the same frame (no work in the background). A patch's place, yaw and size come from a hash of its grid point, so a patch stays where it is while the view moves.
Game thread only.
| Name | Type | Unit | Default | Description |
|---|---|---|---|---|
RadiusM, SpacingM, CellM |
static constexpr double |
Radius of the grass about the main view, m; the grid of the patches, m; the grid of the view cells, m. |
Initialize#
Make the component on Owner unless -NoDenseGrass is on the command line.
Returns: True when the dense grass is on (no -NoDenseGrass and the mesh loaded).
Update#
Put the patches about the main view if the view went into another cell.
| Argument | Description |
|---|---|
World |
The level (its player camera is the main view). |
Count#
Patches drawn now (0 when off).