Contents

enableSpecularOcclusion

Enables specular occlusion computations.

Declaration

var enableSpecularOcclusion: Bool { get set }

Discussion

When enabled, this property reduces specular highlights in areas that are occluded from ambient light, allowing for more realistic indirect lighting. This uses bent normal maps to modulate specular reflections based on ambient occlusion and roughness.

Specular occlusion is particularly useful for character rendering and complex surfaces where traditional ambient occlusion alone may not provide sufficient detail for realistic specular lighting.

material.enableSpecularOcclusion = boolean_value

See Also

Configuring occlusion shading