Labels

Showing posts with label SSAO. Show all posts
Showing posts with label SSAO. Show all posts

December 13, 2011

SSAO shader update v1.2

changes since 1.0:
• v1.2 - added fog calculation to mask AO. Some minor fixes.
• v1.1 - replaced rings sampling with new spiral sampling method. Taken from HERE

fragment shader HERE
blend HERE

October 25, 2011

nicer SSAO

yet another screen-space ambient occlusion shader.
original technique is HERE by Arkano22.
I tuned it up a bit adding my circular texture sampling and pattern sample filtering.
Right now it is the best depth-only based SSAO I have come across.



another screenshot with noise dithering and "garea = 0.4;" instead of "garea = 0.6;" to lighten scene a bit.


scene with and without ssao:


glsl frag shader HERE

and blend file HERE