Foliage
Trees in Plasma are drawn as virtual geometry: the GPU splits each mesh into small clusters of triangles and picks the coarsest clusters that still look right at the current distance. Three features make this work for trees, which are hard for ordinary mesh simplification because a canopy is made of thousands of separate leaf cards.
- Foliage composites. A tree is stored as a few unique parts (a trunk, a branch, a twig with leaves) placed many times, plus one merged mesh for distance. Up close the parts are drawn as instanced virtual geometry, and each unique part is in memory only once. Further away the tree switches to the merged mesh.
- Voxel levels. Coarse levels of a canopy become small cubes that keep the canopy's coverage, so distant trees stay full instead of thinning out to bare branches. Trunks and other closed surfaces stay triangles.
- Bone wind. Every tree carries a small skeleton. A GPU pass moves each bone as a damped spring in the wind and under touch, and the vegetation material bends the vertices with it. Parts and merged mesh share the same bones, so the switch between them does not jump.

Ways to make a tree
| Source | Use it for | Page |
|---|---|---|
A composite tree file (OpenUSD, through the plasma.usd package) | Trees from a tree library that exports instanced parts on a skeleton | Foliage Composite Asset |
| A Plant Graph | Trees and shrubs grown from rules and your own part meshes, or an imported tree reworked | Plant Graph Asset |
| An ordinary mesh | A single tree mesh, bushes, debris | Trees from a single mesh |
The first two produce a Foliage Composite asset. Its output is a static mesh (the merged mesh) plus one mesh per part, so anything that takes a mesh can use it.
Putting trees in a scene
Drag a Foliage Composite asset into the viewport or the scene tree. The editor creates an object with three components:
| Component | What it does |
|---|---|
| Mesh | Shows the merged mesh. Its material overrides apply to the parts as well. |
| Foliage Composite | Once the mesh is loaded, adds one instanced mesh component per part to the object and switches between parts and merged mesh by distance to the main camera. |
| Foliage Bones | Animates the tree's skeleton in the wind. See Foliage Wind. |
The Foliage Composite component has no properties. It shows the parts while the merged mesh's error would be larger than Vegetation.Composite.SwitchErrorPixels pixels on screen (default 1), and the merged mesh beyond that distance. The asset's Switch Error decides how large that error is, and so where the switch happens.
To fill a landscape, use the plasma.vegetation package: a Vegetation Type whose LOD 0 mesh is a Foliage Composite draws its trees as composites, in batches per cell. Its Vegetation Type window then shows a summary of the composite's parts and bones. In vegetation layers, two more limits apply:
| CVar | Default | Description |
|---|---|---|
Vegetation.Composite.MaxPartsDistance | 60 | Trees in vegetation layers show their parts at most this close (metres, at instance scale 1), whatever their switch error asks. 0 = no cap. |
Vegetation.Composite.ShadowPartsDistance | 20 | Within this distance trees cast their shadow with their parts; beyond it the merged mesh casts it. |
Trees from a single mesh
An ordinary mesh asset can use voxel levels and bone wind too. Two mesh asset properties control this; Virtual Geometry must be on.
| Property | Default | Description |
|---|---|---|
| Shape Preservation | None | None: coarse levels are made by edge collapse and by removing small pieces, which is right for solid, connected surfaces. Voxelize: groups of a coarse level that would lose surface (leaf cards, debris) become voxels that keep their coverage. Closed surfaces such as trunks still stay triangles. |
| Wind Skeleton | None | None: no skeleton; the material's per-vertex wind applies, if it has one. Trunk Chain: builds a chain of bones up the trunk and binds the vertices to it by height. Only for meshes imported from a file. |
| Wind Skeleton Segments | 4 | Number of bones in the trunk chain, 1 to 8. |
Transform the mesh after changing these. A mesh with a wind skeleton needs a Foliage Bones component next to its mesh component and a material set up for bone wind (see Foliage Wind) to move.
Inspecting foliage
- Render Mode > Foliage > Foliage Representation tints plants by how they are drawn: green for parts, blue for the merged mesh, orange for impostors and red for merged cells (the last two come from
plasma.vegetation). Everything else is dimmed. - Geometry > Topology > Meshlet Clusters shows the cluster levels. On a canopy far away the voxels are visible as cubes. The Foliage Composite asset window has a Voxel levels check box for the same view.
Experimental CVars
These are off by default. They were measured slower or have visual problems in a dense forest, so leave them off in shipping settings.
| CVar | Default | Description |
|---|---|---|
Rendering.Foliage.PrepassMaxDistance | 0 | Vegetation clusters entirely beyond this distance (metres) skip the depth prepass and are drawn once in the forward pass. Faster, but far foliage loses ambient occlusion and shadow detail. It also keeps all local shadow maps on with guided direct lighting. 0 = off. |
Rendering.Foliage.RigidWind | off | Moves whole clusters with one transform instead of per vertex. Shaded clusters currently draw black. |
Rendering.VisibilityBuffer | off | Draws foliage through a visibility buffer. Measured slower than the default path. |