Page 1 of 1

Pixel Depth

PostPosted: Tue Oct 09, 2018 9:49 pm
by sethhall
I'm trying to create a shader for depth intersection. In the past I've subtracted the camera depth from the pixel depth, etc ... Is there a Pixel Depth node in Amplify or something equivalent I'm not sure of?

Seth

Re: Pixel Depth

PostPosted: Wed Oct 10, 2018 9:43 am
by Amplify_Borba
Hello! We do have a Depth Fade node, which internally calculates the difference between each pixel's current depth and the value fetched from the depth buffer on that specific location.

Please let me know if this is what you were looking for, thanks!

Re: Pixel Depth

PostPosted: Thu Oct 11, 2018 2:56 pm
by Amplify_Borba
Through our last email exchange I've shared a sample which may be useful for others, so I'll be leaving it in this post as well:

E0PQngJ.jpg
E0PQngJ.jpg (57.88 KiB) Viewed 2936 times