• Advertisement
Sign in to follow this  

Use Depth buffer as texture

This topic is 1426 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement

Yes, no, and it depends on why you want to do it.

 

If for shadow mapping, then it can be done (on certain hardware), but you need to create a new texture with a depth/stencil format, get surface level 0 on it, set that as your depth/stencil surface and draw into it.  All summarized here: http://aras-p.info/texts/D3D9GPUHacks.html#shadowmap

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement