Home Marmoset
The BRAWL² Tournament Challenge has been announced!

It starts May 12, and ends Sept 12. Let's see what you got!

https://polycount.com/discussion/237047/the-brawl²-tournament

Toolbag - Possible to get or render depth buffer for custom post effect?

Hey all!

I am working on a cel shader and wanted to add Sobel edge detection. For this, I need access to depth information. Is it possible to access the depth texture used by something like the DoF post effect? If not, is it possible to use a fragment shader to render all objects in the scene to a depth buffer? I'm having difficulty trying to understand how some of this information is passed around between shaders.

Thanks for any assistance!

Replies

Sign In or Register to comment.