I had some spare time and inspiration from mtracer and Arkano22 and I made yet another Screen-Space Ambient Occlusion filter.
And there is a reason why I reinvented stuff that already exists and works.
faster - code kept as simple as possible.
more natural - samples are gathered circularly making occlusion softer, also AO is not rendered on lit and bright areas. In real life Ambient Occlusion is noticeable only in shadows.
Feel free to use and modify the filter…
notice the difference in bright areas, where AO makes the light look dull.
glsl frag. shader: http://www.pasteall.org/12299
wasd+mouse - mouselook
LMB - shoots a sphere
1 - disables filters
2 - ssao+tex
3 - ssao+light
4 - plain ssao
ssao_ati.blend (350 KB)