Hey folks, I’m doing a small example project on how to implement SSAO (ambient occlusion) in Defold but I don’t really have any good or even decent looking content to use for testing. So I’m looking to the community to see if anyone out there has anything they would be inclined to share publically or privately?
Anything at all is better than my boxes and spheres that I’m using right now thanks!
I think @morgerion has a better looking version that this, maybe he’s willing to share it? Otherwise, I could add the blurring to this I suppose. What platform will you be running on?
I didn’t invent anything interesting and just adapted the shader from here: Shader - Shadertoy BETA
If you’re not doing a Seus PTGI shader, there are a few nuances:
SSAO is not a good technique for mobiles, to get the most out you have to use render-target with linear depth, with half-float format 16F, and with reduced resolution (e.g. 1024x1024 or 512x512).
use 10…16 samples and a small radius.
do not use MRT - an extra run of geometry will cost you less than a pixel fillrate.
forget old and retarded devices (my favourite point).
Sharing functional example projects are still useful for more novice users to learn from and have something useful for their own projects more quickly. What’s obvious to you is not obvious to others.