Part
Foliage shading
You might say: leaf shader, vegetation lighting, subsurface foliage
Foliage shading adapts lighting to thin leaves, cards, stems and trunks. It uses alpha, normals, ambient occlusion and a subsurface or backlight approximation so plants keep volume in sun and shade.
- What it does
- Makes foliage read as thin, light-catching material instead of flat paper or opaque plastic.
- Ask
- Where should light pass through, what should stay in shadow, and does the shader agree with the ground and canopy light?
- Trouble
- Leaves look like flat paper, alpha edges are jagged, backlight blooms, or foliage shading disagrees with the ground.
What to look for
- Backlit leaves show a controlled warm or bright transmission
- Leaf edges stay readable without a hard cutout halo
- Trunks shade as solid forms while leaves remain thin
- Foliage darkens in canopy shadow without becoming a black card
Connections
- See also: Roughness
- Controls: Ambient occlusion
- See also: Wind
Sources
- Tiago Sousa, Vegetation Procedural Animation and Shading in Crysis, 16.2, Vegetation Shading
In reality, foliage can have different thicknesses (for our foliage, that is the assumption we always make) and lets variable amounts of light pass through in different areas. Therefore, we needed a subsurface-scattering approximation.
- Tiago Sousa, Vegetation Procedural Animation and Shading in Crysis, 16.2.1, Ambient Lighting
We also use a precomputed ambient occlusion term stored in the vertex's alpha channel, which is painted by artists or computed using standard 3D modeling software.
Use it on your project
teardown-apply: hold "Foliage shading" (foliage-shading) from the teardown at https://teardownatlas.com/environment-art/ against my project
Paste it into a coding agent that has the teardown skills.
An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal