Ambient occlusion is a shading technique in computer graphics that estimates how exposed each point in a 3D scene is to ambient light. Areas that light has difficulty reaching, such as joints between objects, corners and crevices, are rendered darker, adding depth and realism to a scene. Unlike direct lighting and shadow calculations, it approximates how much indirect light is blocked, so it is normally combined with other lighting techniques.
In real-time rendering, screen space ambient occlusion (SSAO) and related methods that approximate the effect from depth information are widely used, and game engines and WebGL libraries offer them as post-processing effects. In offline rendering, the effect is computed more precisely with ray tracing or baked into textures in advance.