An object that provides color values to be multiplied with the ambient light affecting the material.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Scene
Kit
Declaration
var ambientOcclusion: SCNMaterial Property { get }
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 physically
), ambient occlusion approximates large-scale surface details that obscure global illumination.