I'm currently working on a custom SSAO shader which is based around the shader by Martins Upitits http://devlog-martinsh.blogspot.de/2011/10/nicer-ssao.html
I managed to get it working but I think I got the values for the near and far clipping planes wrong.
I had a look at GZDoom's source but the only values I could find are 5.0 for the near clipping plane and 65536.0 for the far clipping plane.
These values are from the viewport of the software renderer.
But actually I think they are not quite right - at least for OpenGL.
Does anyone know where I could look up the values for the OpenGL viewport - or even better - just tell me

Thanks in advance.
Cheers
HG