Studio Yotsuba
Back to Node List

Layer Occlusion Map

layer_occlusion_map

Builds an occlusion (AO proxy) map from how densely front layers overhang each pixel

Reviewed
Guide available

Input Ports

NameTypeDescription
Layers
layers
List<Image>
Required
Layer images from back (index 0) to front

Output Ports

NameTypeDescription
Occlusion Map
map
Image
Grayscale occlusion proxy. White means strongly overhung by front layers

Parameters

NameTypeDefaultRangeDescription / Options
Radius
radius
Int
21–16

How close a front layer must be (in pixels) to occlude a pixel

Overview

Creates a simple AO (occlusion) map from how much each layer is covered by layers in front. It automatically adds soft shadows in gaps between overlapping parts, giving layered compositions more depth.

Usage tips

  • A go-to AO chain is occlusion map → tone_curve (adjust strength) → blend (Multiply). Reduce the strength because direct multiplication is usually too strong.
  • Routing through gradient_map to mix blue-purple into the shadow color gives pixel art a calmer look.
  • Use contact_shadow_from_order for clearly shaped shadows and this node for soft occlusion.

Related nodes

  • contact_shadow_from_order / layer_depth_map — related nodes in the same lane
  • tone_curve / gradient_map / blend — adjust and composite the map
  • list_create — bundles the layer list

Technical details

  • The node finds the frontmost layer at each pixel, then normalizes the count of layers farther forward that have an opaque pixel within the radius.
  • A pixel in the frontmost layer has occlusion 0 if nothing lies above it.

Examples

  1. Gap shadow: occlusion map → adjust strength with Tone Curve → bake in with Blend(Multiply)
  2. AO-style calmness: convert occlusion to a pale blue-purple with Gradient Map, then multiply
Back to Node List