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..
screenshots:
notice the difference in bright areas, where AO makes the light look dull.
YouTube video:
(click on the image to view)
glsl frag. shader: http://www.pasteall.org/12299
blend: http://www.pasteall.org/blend/2442
latest version - (workd for ATI hardware)
http://www.pasteall.org/blend/2460
or
Attachment 103261
controls:
wasd+mouse - mouselook
LMB - shoots a sphere
1 - disables filters
2 - ssao+tex
3 - ssao+light
4 - plain ssao












Reply With Quote





Bookmarks