material.AmbientOcclusion
material.AmbientOcclusion(distance=1.0, exponent=2.0, *, name=None)Colors shaded only by ambient occlusion.
An emission shader that ignores scene lighting entirely, so it is cheap to render and looks similar in Cycles and EEVEE.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| distance | float | Distance in metres (nm) that the ambient occlusion samples. | 1.0 |
| exponent | float | Exponent applied to the occlusion factor; higher values darken crevices more aggressively. | 2.0 |
| name | str | Name for the created material datablock. Defaults to "Ambient Occlusion". |
None |
Attributes
| Name | Description |
|---|---|
| material | The underlying Blender material datablock. |
| tree | The nodebpy tree builder for the material’s node tree. |
Methods
| Name | Description |
|---|---|
| node | Add a Material node to the active GeometryNodeTree and set it to this material. |
node
material.AmbientOcclusion.node()Add a Material node to the active GeometryNodeTree and set it to this material.