Re: Z-buffer as a texture?
- From: "Justus Jonas" <Fake@xxxxxxxxxxx>
- Date: Fri, 8 Aug 2008 19:02:44 +0200
Why don't you render with multiple rendertargets, and to one rendertarget you render the depth information (given by texture coordinates as you cant read positions in the pixel shader).
Afaik you can't access the z-buffer as a texture, its only used for that purpose and thats it.
Another thing you might consider, the z-buffer is not linear, which might screw things up when using its information for some unknown purpose.
.
- References:
- Z-buffer as a texture?
- From: Spacecookies
- Z-buffer as a texture?
- Prev by Date: Z-buffer as a texture?
- Next by Date: How can I get explanation about DirectDrawCreateEx function in help file?
- Previous by thread: Z-buffer as a texture?
- Next by thread: How can I get explanation about DirectDrawCreateEx function in help file?
- Index(es):