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.
![]()