ComfyUI Node
Generate AO Map
Generates an Ambient Occlusion map from a height map. GPU-accelerated for fast processing.
Generate AO Map
- height_map
- IMAGE
◄auto_levelstrue►
◄radius_percent3.0►
◄strength2.5►
◄contrast1.0►
◄bias0.001►
◄num_samples24►
◄blur_radius1.5►
CategoryLeputen-Utils/PBR
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| height_map | IMAGE | The input grayscale height map (white is high, black is low). | |
| auto_levels | BOOLEAN | true | Automatically stretch the height map's contrast to use the full 0-1 range before processing. |
| radius_percent | FLOAT | 3.00.1–20 | Sample radius as percentage of image size. Scales automatically with resolution. |
| strength | FLOAT | 2.50–10 | Controls the intensity of the AO effect. Higher values result in darker shadows. |
| contrast | FLOAT | 1.00.1–4 | Adjusts the falloff curve. Higher = sharper shadows, Lower = softer gradients. |
| bias | FLOAT | 0.0010–0.1 | Helps prevent 'acne' artifacts on flat surfaces. Lower = more detail but more noise. |
| num_samples | INT | 244–128 | Number of samples per pixel. Higher = smoother but slower. 16-32 is usually sufficient. |
| blur_radius | FLOAT | 1.50–50 | Final Gaussian blur to smooth the result. Set to 0 to disable. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |