class
FoliageSystem
- Module
- Game
- Header
#include "Terrain/FoliageSystem.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
FoliageSystem() = default | FoliageSystem | |
~FoliageSystem() override = default | ~FoliageSystem | |
FoliageSystem(const FoliageSystem&) = delete | FoliageSystem |
Public functions
| Returns | Name | Description |
|---|---|---|
FoliageSystem& | operator= | |
void | Initialize | |
void | Shutdown | |
void | Update | |
std::vector<std::function<void()>> | TakePendingImpostorBakes | |
std::string | BuildFingerprint | Everything whose change invalidates the scatter, the batch structure or the tree/impostor set. |
std::string | BuildAppearanceFingerprint | Blade colour, which is baked into vertex colour and so costs a blade-mesh re-bake but never a re-scatter. |
std::string | BuildPaintedFingerprint | Painted foliage rebuilds on the component's edit revision plus every palette field, never on the instance blob itself — hashing a 100 000-instance string per frame is what the revision exists to avoid. |
Function details
FoliageSystem
C++
FoliageSystem() = default~FoliageSystem
C++
~FoliageSystem() override = defaultFoliageSystem
C++
FoliageSystem(const FoliageSystem&) = deleteoperator=
C++
FoliageSystem& operator=(const FoliageSystem&) = deleteInitialize
C++
void Initialize(World* world) overrideShutdown
C++
void Shutdown() overrideUpdate
C++
void Update(float deltaTime) overrideTakePendingImpostorBakes
C++
std::vector<std::function<void()>> TakePendingImpostorBakes()BuildFingerprint
C++
static std::string BuildFingerprint(const FoliageComponent& fc, const TerrainComponent* tc)Everything whose change invalidates the scatter, the batch structure or the tree/impostor set. Material-only parameters must NOT appear here.
BuildAppearanceFingerprint
C++
static std::string BuildAppearanceFingerprint(const FoliageComponent& fc)Blade colour, which is baked into vertex colour and so costs a blade-mesh re-bake but never a re-scatter.
BuildPaintedFingerprint
C++
static std::string BuildPaintedFingerprint(const FoliageInstancesComponent& fic)Painted foliage rebuilds on the component's edit revision plus every palette field, never on the instance blob itself — hashing a 100 000-instance string per frame is what the revision exists to avoid.
Generated from Terrain/FoliageSystem.h via game.json · Nov 5, 2026Version 1.0.0