---
title: ambientOcclusion
framework: scenekit
role: symbol
role_heading: Instance Property
path: scenekit/scnmaterial/ambientocclusion
---

# ambientOcclusion

An object that provides color values to be multiplied with the ambient light affecting the material.

## Declaration

```swift
var ambientOcclusion: SCNMaterialProperty { get }
```

## Discussion

Discussion Use this property to assign an ambient occlusion texture map to a surface. This property has no effect if there is no ambient light in the scene. If this property is not nil, SceneKit ignores the ambient property. When using physically-based shading (see physicallyBased), ambient occlusion approximates large-scale surface details that obscure global illumination.

## See Also

### Visual Properties for Special Effects

- [normal](scenekit/scnmaterial/normal.md)
- [displacement](scenekit/scnmaterial/displacement.md)
- [emission](scenekit/scnmaterial/emission.md)
- [selfIllumination](scenekit/scnmaterial/selfillumination.md)
