With FBOs we can just render offscreen to an appropriate depth/stencil buffer.
Attach a file by drag & drop or click to upload