What Is the Ambient Occlusion Node in Blender?
The Ambient Occlusion (AO) node in Blender is a shading tool used to calculate soft, contact shadows in areas where surfaces meet, intersect, or sit close together. By simulating how ambient light is blocked in crevices and tight spaces, it adds depth, grounded realism, and structural detail to 3D models. Beyond lighting, it serves as a powerful utility for procedural texturing, enabling artists to automatically generate dirt, dust, edge wear, and grime masks.
How the Ambient Occlusion Node Works
The Ambient Occlusion node casts invisible rays outward from points on a 3D surface to detect neighboring geometry. If a ray hits another surface nearby, Blender marks that point as "occluded" (shadowed). If the ray travels freely without hitting anything, the area remains "unoccluded" (lit).
This calculation produces a grayscale map:
- White areas represent open, exposed surfaces that receive full ambient light.
- Dark areas represent tight spaces, corners, and crevices where ambient light is blocked.
Primary Uses for the AO Node
1. Enhancing Contact Shadows and Depth
While path-tracing engines like Cycles calculate natural lighting, adding subtle ambient occlusion sharpens contact shadows where objects touch the ground or join together. In the EEVEE rendering engine, the AO node provides fast, dynamic contact shadows without requiring heavy light setups.
2. Procedural Weathering and Dirt Maps
By routing the AO node's output into a ColorRamp, you can create masks for procedural materials. Since dark AO values naturally concentrate in crevices and folds, you can blend a secondary "dirt" or "rust" texture into those specific areas to simulate accumulated grime on worn objects.
3. Creating Edge Wear (Inverted AO)
When the "Inside" checkbox on the AO node is enabled, the node reverses its calculation. Instead of detecting concave crevices, it detects convex edges and outer corners. This inverse mask is ideal for generating chipped paint, scuffs, or highlighted metallic edges on worn surfaces.
4. Stylized and Non-Photorealistic Rendering (NPR)
In toon-shaded, comic book, or stylized artwork, the AO node can be combined with a Constant ColorRamp to draw bold shadow lines in folds, clothes, or architectural details.
Key Parameters of the AO Node
- Color: Sets the base color of the unoccluded areas (defaults to white).
- Distance: Controls how far out rays search for surrounding geometry. Smaller values create tight, thin shadow lines, while larger values create broad, soft shadows.
- Samples: Determines the quality of the occlusion calculation in Cycles. Higher values reduce noise in the shadows at the cost of rendering time.
- Inside: Inverts the occlusion detection to focus on outer edges rather than inner crevices.
- Only Local: Restricts the occlusion calculation to the object itself, ignoring surrounding objects in the scene.
Practical Setup in the Shader Editor
- Open the Shader Editor with an object selected.
- Press
Shift + Aand search for Ambient Occlusion. - Plug the Color or AO Factor output into a Mix Color node or a ColorRamp.
- Adjust the Distance parameter to fit the scale of your object.
- Combine the output with your primary shader (such as the Principled BSDF) to blend shadows or overlay procedural grime.