Ambient Occlusion Pass in Blender Multi-Layer EXR
The Ambient Occlusion (AO) pass in multi-layer EXR compositing is a dedicated grayscale render layer that simulates soft, localized contact shadows where surfaces meet or are closely clustered. In Blender, exporting this pass within a multi-layer OpenEXR file allows artists to isolate, manipulate, and fine-tune depth perception, micro-contrast, and surface proximity shadows during post-production without having to re-render the entire 3D scene.
Understanding the Ambient Occlusion Pass
The AO pass calculates the accessibility of each point on a surface to ambient light. Areas that are occluded by nearby geometry—such as crevices, corners, gaps, and contact points between objects—receive less light and are rendered darker. Because it is calculated independently of scene lights, colors, and surface materials, the output is a clean, neutral grayscale map representing spatial depth and geometry density.
Primary Uses in Multi-Layer EXR Compositing
Storing the AO pass inside a multi-layer EXR file retains 32-bit floating-point data, providing extensive dynamic range and flexibility in Blender’s Compositor. Its primary uses include:
1. Enhancing Depth and Contact Shadows
The most common application is multiplying the AO pass over the combined beauty pass or diffuse color pass using a Mix Color node set to Multiply. This reinforces contact points (such as where feet touch the ground or objects rest on a table), anchoring elements firmly into the scene and preventing them from appearing as though they are floating.
2. Selective Shadow Grading and Tinting
Instead of simply darkening areas with pure black, compositors use the AO pass as a factor/mask in Color Balance or Hue Saturation Value nodes. This allows for the selective tinting of crevices—such as adding cool blues or warm ambient tones into recessed areas—to match ambient environment lighting or artistic art direction.
3. Edge and Detail Masking
The AO pass functions as a dynamic geometric mask. In post-production, it can drive procedural effects like dirt, grime, dust, or edge wear in interior corners without relying on complex shader networks within the 3D viewport.
4. Correcting Over-Lit or Flat Shading
In scenes with heavy global illumination, flat diffuse textures, or strong direct lighting, subtle geometric details can get washed out. Blending the AO pass back into the render restores edge definition and structural clarity without altering the scene's primary light balance.
Typical Compositing Workflow in Blender
- Connect the multi-layer EXR image to an Image node in the Compositor.
- Route the AO output into a ColorRamp or Map Value node to clamp and adjust the shadow intensity and falloff.
- Combine the modified AO with the Beauty or Diffuse pass using a Mix Color (Multiply) node.
- Adjust the Factor slider to subtly introduce the required amount of occlusion into the final image.