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

  1. Backlit leaves show a controlled warm or bright transmission
  2. Leaf edges stay readable without a hard cutout halo
  3. Trunks shade as solid forms while leaves remain thin
  4. Foliage darkens in canopy shadow without becoming a black card

Connections

Sources

  1. Tiago Sousa, Vegetation Procedural Animation and Shading in Crysis, 16.2, Vegetation ShadingIn 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.
  2. Tiago Sousa, Vegetation Procedural Animation and Shading in Crysis, 16.2.1, Ambient LightingWe 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