Write access to the Depth Buffer?

Hi.

Is it possible in unity iphone to write directly to the depth buffer with your own greyscale 2D texture? I was thinking of making a game with a fixed camera position per scene (akin to the original Alone in the Dark). Render out a complex image in Vue 8 Infinite (with Z-buffer), push the the colour and depth image onto the background and then apply 2D sprites (with a z value) over the top.
Such that any foreground objects would be neatly drawn over the top of my 2D sprites (depending on its z value). etc.
:smile:

Hello jitsua

It is a side-effect of the PowerVR (and tile based rendering in general) that there is no explicit depth buffer to write to. In GLES, you can (at great expense) get a read-only copy. So this kind of depth-fill “blit” effect is not easily done on the iPhone.

Stephen