8#include "resource/asset/terrain_asset.h"
10namespace Vkm::Engine {
Where a terrain's plants stand: each grid square grows as many of a layer's plants as the density pai...
Definition terrain_plants.h:20
constexpr uint32_t MAX_PER_SQUARE
The most plants one grid square grows of one layer, whatever its density asks.
Definition terrain_plants.h:23
void scatter(const TerrainAsset &terrain, std::vector< Plant > &out)
Every plant terrain grows.
A terrain: a square grid of heights, the share of each of four materials painted at each grid vertex,...
Definition terrain_asset.h:54
One plant: which layer, and where in the terrain it stands.
Definition terrain_plants.h:28
uint32_t layer
Index into TerrainAsset::foliage.
Definition terrain_plants.h:29
glm::mat4 local
Its place in the terrain: standing on the surface, turned and sized.
Definition terrain_plants.h:30