Implementing your own depth buffer with GLSL
- by NGorso
I need a datastructure of the same size as the normal depth buffer and I need to be able to read from and write to it in a shader. Is this possible, and what does this datastructure look like?