Hi, I was wondering if there's a way to save and restore the Z-buffer. What I want to do is pretty much to create a G-buffer, save the Z-buffer, do stuff, including creating shadow maps etc. Then restore the Z-buffer before rendering the forward pass with particles and other translucent surfaces. Is there any sane way to do this?
I'm using XNA with the intention of moving on to MonoGame in the near-ish future.