Hey there,
I recently found this trick (might have been done before?). The other way of faking SSAO in real-time is by adding negative point lamps to objects, I’ve found what I believe to be a much better solution – only works properly for orthographic camera, mind you. It doesn’t require a tremendous amount of lamps – just one Sun lamp parented to the camera.
You can control the SSAO by adjusting the lamp settings:
- Energy: Changes the intensity of the SSAO
- Shadow colour: Changes the colour of the SSAO
- Buffer Type: Use variance. Can use simple and a high size changes the quality of the outline.
- Size: Inversely proportional to the radius of the SSAO (lower = greater radius).
- Bias: SSAO is evident in front of the object, or within the object – not just behind it.
- Clipping and Frustum settings: Use these to your advantage to enhance performance – don’t let it exceed the camera bounds too much.
Enjoy
Attachments
fakeOrthoSSAO.blend (585 KB)