Download

Getting scene depth pixel value from specific location

Hi folks!

I’m a little bit ‘lost’ and I hope someone here can help me.I have a material and I want to get the depth information from one pixel of the scene depth. In my case I want to have the depth information from my actors location/pivot but I don’t have any clue how I could ‘transform’ the worldposition of my actor into screensposition and get the depth information from this specific pixel.