Instance Property

screenSpaceAmbientOcclusionBias

An offset for modulating ambient occlusion effects.

Declaration

@property(nonatomic) CGFloat screenSpaceAmbientOcclusionBias;

Discussion

Ambient occlusion is an effect that improves material shading by calculating the amounts of ambient light that reach various parts of a surface, creating shadows on parts of a geometry where incoming light is obscured by other parts of the geometry. (You can provide pre-rendered ambient occlusion effects for a material using its ambientOcclusion property.) Screen-space ambient occlusion (SSAO) provides a real-time approximation of this effect for the entire scene viewed through the camera.

This screenSpaceAmbientOcclusionBias value is used in an intermediate stage of calculating the SSAO effect, and measures a distance in scene units. Increasing or decreasing this value from its default of 0.03 can help to offset unrealistic effects produced by changing other SSAO settings.

See Also

Adding Screen-Space Ambient Occlusion

screenSpaceAmbientOcclusionIntensity

The intensity of the screen-space ambient occlusion effect applied in camera rendering.

screenSpaceAmbientOcclusionRadius

The distance, in units of scene space, at which ambient occlusion takes effect.

screenSpaceAmbientOcclusionDepthThreshold

The maximum depth difference, in units of scene space, at which to apply ambient occlusion effects.

screenSpaceAmbientOcclusionNormalThreshold

The magnitude of the blur effect applied to create ambient occlusion shadows.