Instance Property

ambientOcclusion

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

Declaration

@property(nonatomic, readonly) SCNMaterialProperty *ambientOcclusion;

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 SCNLightingModelPhysicallyBased), ambient occlusion approximates large-scale surface details that obscure global illumination.

See Also

Visual Properties for Special Effects

normal

An object that defines the nominal orientation of the surface at each point for use in lighting.

emission

An object that defines the color emitted by each point on a surface.

selfIllumination

An object that provides color values representing the global illumination of the surface.