Yotsuba Games
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
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
ăƒŹă‚€ăƒ€ăƒŒ
layers
List<Image>
Required
ăƒŹă‚€ăƒ€ăƒŒç”»ćƒăźăƒȘă‚čăƒˆă§ă™ïŒˆć…ˆé ­ăŒæœ€èƒŒéąă€æœ«ć°ŸăŒæœ€ć‰éąïŒ‰

Output Ports

NameTypeDescription
éźè”œăƒžăƒƒăƒ—
map
Image
ă‚°ăƒŹăƒŒă‚čă‚±ăƒŒăƒ«ăźéźè”œăƒžăƒƒăƒ—ă§ă™ă€‚æ‰‹ć‰ăźăƒŹă‚€ăƒ€ăƒŒă«ćŒ·ăèŠ†ă‚ă‚Œă‚‹ć Žæ‰€ă»ă©ç™œă§ă™

Parameters

NameTypeDefaultRangeDescription / Options
ćœ±éŸżćŠćŸ„
radius
Int
21–16

æ‰‹ć‰ăƒŹă‚€ăƒ€ăƒŒăŒäœ•ăƒ”ă‚Żă‚»ăƒ«ä»„ć†…ă«ă‚ă‚Œă°ă€ŒèŠ†ăŁăŠă„ă‚‹ă€ăšăżăȘすかです

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
Layer Occlusion Map — PixPipeline Node Reference