I am working with aframe and want to try post processing using afame-effects. I tried bloom and godray, both worked fine. But when I tried ssao, it did not work at all. and the result is very weird. Below is the code. And the result looks like showed in the image.

Code:

I searched through google, but found no one using ssao with aframe. Any idea? Thanks!
@wizgrav
I am working with aframe and want to try post processing using afame-effects. I tried bloom and godray, both worked fine. But when I tried ssao, it did not work at all. and the result is very weird. Below is the code. And the result looks like showed in the image.

Code:
I searched through google, but found no one using ssao with aframe. Any idea? Thanks!
@wizgrav