Get World Position per Pixel


is it possible to get the world position of every Pixel?

Like PixelDepth, but i need the Z Value of the Pixels.

thanks in advance


I assume you’re talking about from within a material. The WorldPosition node should do the trick.

Hi. i do not know how to use it. I have made an example:

Whatever value i take for “Height” Param, it does not have any effect.

Do you know what i am doing wrong?

I’m curious why you’re adding 1 to the output of your clamp. That’ll produce a value that’s 1 to 2 for your diffuse, which seems unusual. Normally, diffuse ranges from 0 to 1. Without seeing the entire material, hard to tell.