I am trying to add ssao effect to a visualization application but there are errors in resulting image. I am using code from https://github.com/nvpro-samples/gl_ssao . Errors occur in rapidly changing lighting near the edges of screen.
Only change to code was to remove basic shading and passing only white from scene.frag shader so the error could be seen more pronounced. I also added obj input to import sponza scene but the error is visible with the included sample scene as well if camera is moved close to object. As is this implementation only enables viewing objects in relative distance. Moving closer to objects brings up this errors.
What causes this error and is there fix.