struct

FoliageComponent

Module
Game
Header
#include "Game/Components/FoliageComponent.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Properties

TypeNameDescription
boolenabledDefault true.
floatdensityDefault 0.25f.
int32_tseedDefault 1337.
int32_tbladesPerClumpDefault 3.
floatbladeWidthDefault 0.1f.
floatbladeHeightDefault 0.7f.
floatminScaleDefault 0.7f.
floatmaxScaleDefault 1.3f.
floatslopeLimitDefault 0.35f.
floatminHeightDefault -10000.0f.
floatmaxHeightDefault 10000.0f.
Vec3baseColorDefault Vec3(0.10f, 0.22f, 0.05f).
Vec3tipColorDefault Vec3(0.35f, 0.62f, 0.16f).
floatwindStrengthDefault 0.12f.
floatwindSpeedDefault 1.6f.
floatwindDirectionDegreesDefault 0.0f.
int32_tcellsPerSideDefault 8.
int32_tmaxInstancesDefault 100000.
int32_tlayerIndex0-3 read the first weightmap plane, 4-7 the second. The range used to stop at 3 because only one plane was ever sampled, which silently made half the palette ungrassable. Default -1.
floatlayerWeightThresholdDefault 0.25f.
floatalignToSlope0 = every clump stands straight up, 1 = every clump lies in the surface plane. Vertical grass on a hillside reads as cardboard standing on edge; fully aligned grass on a cliff hangs out of it. The blend is what an artist actually tunes. Default 0.0f.
floattreeDensityDefault 0.004f.
std::stringtreeModelPath
floattreeMinScaleDefault 0.8f.
floattreeMaxScaleDefault 1.4f.
floattreeSlopeLimitDefault 0.25f.
floattreeMinHeightDefault -10000.0f.
floattreeMaxHeightDefault 10000.0f.
int32_ttreeMaxInstancesDefault 2000.
std::stringbuiltFingerprint
std::vector<FoliageBatchDraw>renderBatchesGPU-instanced render batches — built by FoliageSystem when r.Foliage.GPU != 0 (grass clump instances + tree impostor cards), submitted per frame by Scene::OnRender. Never serialized; a scene load rebuilds them through the fingerprint.

Constructors

SignatureNameDescription
FoliageComponent() = defaultFoliageComponent

Function details

FoliageComponent

C++
FoliageComponent() = default
Generated from Game/Components/FoliageComponent.h via game.json · Nov 5, 2026Version 1.0.0