Download

How can I get the scene depth at a specific point in the world within my material?

I’m creating some occlusion logic inside my particle material and need to pull the scene depth value of the particle’s origin position from within the material. I thought the screenshot below would have worked but it doesn’t seem to be what I wanted. Any suggestions?

Thanks