Could you try to implement the ssao shader from Heelx?