dev-docs/RFCs/proposals/SSAO-effect-rfc.md
Authors: Jian Huang
Date: July. 2019
Status: For Review
SSAO is an efficient approximation of ambient occlusion, which tunes the ambient lighting based on depths of the current pixel and the surrounding area.
SSAOEffect class is the public interface to create the SSAO effect.
const ssaoEffect = new SSAOEffect();
const deckgl = new Deck({
canvas: 'my-deck-canvas',
effects: [ssaoEffect],
layers: [
// building layer
new SolidPolygonLayer({
...})]
});
We only apply SSAO to 3D layers. Pixels in 2D layers close to 3D objects should also have this effect.