Overview
Creates a simple depth map from layer order, with foreground layers shown brighter. Supplying a layer list gives you a base for atmospheric perspective, where distant areas are dark and hazy while the foreground remains clear.
Usage tips
- A go-to depth-fog chain is depth map →
gradient_map(distant = dark blue) →blend(Multiply). It adds atmosphere to layered backgrounds. - Order the input list from back to front. Reversing the order reverses the depth.
- The output is a Map (value field), so treat it as graduated values rather than a mask.
Related nodes
layer_occlusion_map/contact_shadow_from_order— related nodes in the same lanegradient_map/blend— consume the maplist_create— bundles the layer list
Technical details
- At each pixel, the order of the frontmost opaque (alpha ≥ 0.5) layer is normalized as
(index+1)/number of layers. - The output is a Map (value field) as defined in §2.7. Do not confuse it with a Mask.
Examples
- Depth fog: depth map →
Gradient Map(distant = dark blue, foreground = colorless) →Blend(Multiply) - Depth-based desaturation: use the depth map as the mask for
Blend By Mask, mixing with a desaturated version