Skip to content

Leaves and leaf shape ​

Leaves are cards: small textured rectangles with a cut-out leaf (or a sprig of needles, a blossom spray, a palm frond) in their texture. Two nodes make them:

text
(skeleton) ──► Leaves ──► Leaf mesher ──► Tree output
                              ▲
             PBR material ────┘   (leaf texture, alpha mask, two-sided)
  • Leaves decides where the cards go: on which stems, how many, how big, facing where.
  • Leaf mesher decides what each card is: one plane or two crossed, how its normals shade, and how it is folded and curled.

Placing leaves ​

FieldKeyWhat it does
Grow onselectwhich stems carry leaves (default: the newest level)
Placementplacementas for branches; random uses a low-discrepancy sequence, so changing the count does not reshuffle the leaves already there
Count / Densitycount, densityleaves per stem, or per meter of stem when density is above 0
Start / Endrange_start, range_endthe part of each stem that carries leaves
Sizesizecard height, meters (takes variance)
Angleangleangle between leaf and stem, degrees
Facingorientationfollow_stem keeps the stem in the card plane; face_up turns cards to the sky; face_out away from the stem
Tilt jittertiltrandom turn of each card around its own axis, degrees
Atlas variantsatlas_variantsweight of each region of the leaf texture (one number per region)
Tip clustertip_clusterextra leaves at the tip of each stem

Count ​

Leaves per twig: 4, 12 and 30

Size ​

Leaf size 0.18 m, 0.34 m and 0.6 m

Cards and normals ​

FieldKeyWhat it does
Cardcardquad = one plane; cross = two crossed planes (needles, grass); custom = the mesh connected to the optional input
Pivotpivotwhere the card attaches: its base or its centre
Normalsnormalsflat = the card's own normal; crown = blended toward the outside of the crown
Crown blendcrown_amounthow much crown normals replace card normals
Clusters belowcluster_belowLODs with less detail than this merge leaves into a few larger cards

Crown normals fit an ellipsoid around the foliage and bend each card's normal toward the outside of it, so the canopy shades as one soft volume instead of many flat cards. It is the default.

Whether a card shows both faces is a material setting (Two-sided on the PBR material), not a mesher one.

Leaf shape ​

Flat cards look like paper from the side. The Leaf shape fields subdivide each quad or cross card and bend it. With all of them at 0 the card stays a flat 4-vertex plane, exactly as before.

Flat, fold 0.6, curl 0.7, cup 0.7, twist 0.7

FieldKeyRangeWhat it does
Columns / Rowssubdiv_x, subdiv_y1–8quads across and along each card; raised automatically when a shape needs them
Foldfold−1 … 1V-fold along the midrib; the sides lift toward the card normal (about 60° per side at 1)
Curlcurl−1 … 1bends the card along its length, tip toward the normal (up to 90° at 1)
Cupcup−1 … 1bends the card across its width, a rounder fold (up to 120° in total at 1)
Twisttwist−1 … 1twists the card around its midrib, up to 90° at the tip
Shape variationshape_jitter0 … 1random variation of fold, curl, cup and twist per leaf, from the node's seeded stream

Things to know:

  • Each shape adds triangles: fold needs 2 columns, cup 4, curl, twist and variation 3 rows. Lower LODs use fewer rows and columns, and leaves merged into clusters stay flat.
  • Normals and tangents follow the bent surface, so lighting and normal maps stay right.
  • custom cards are never deformed.
  • The wind flutter weight runs from 0.5 at the base of a leaf to 1 at its tip, so curled tips move more.

The leaf texture ​

A leaf texture is usually an atlas: several leaves in one image, each a rectangle. Set the rectangles in the leaf material's Atlas regions (the inspector draws them over the texture; Split as a grid fills a grid) and the mix in Atlas variants on the Leaves node. In each region the leaf base is at the bottom edge.

The leaf material uses Alpha mask with an Alpha cutoff (0.5 by default) and Two-sided on. More in Materials and textures.

Leaves on custom meshes, fruits ​

Connect a Mesh input node (GLB, glTF, OBJ or FBX) to the leaf mesher's optional mesh input and set Card to custom: every leaf placement then gets a copy of that mesh. Use it for hand-made leaf clusters, fruits or flowers.