accessing z-buffer texture when using jit.gl.cameras @capure 1
hi
I wonder: is there a way to access the z-buffer texture when using a jit.gl.camera with @capture 1? if not, can anybody tell me the algorithm used for creating a z-buffer texture? here my current solution. but while it looks ok, it somehow does not work with the SSAO-shaders I have found on the web so far. :-(
shader to capture depth and linearize values (0-1)
you might check out this thread.
thanks, but I know already that solution (I started actually based on that depth shader) but it didnt work either.
There are different ways to encode the depth information in a texture, and I wondered how the z-buffer of opengl does it.
here's one technique that gives a linearized, normalized depth buffer:
rob, thank you. I assume now the answer in regards of the z-buffer for @capture 1 is: no.