Pixel depth explanation needed

Hello community

Can me someone explain pixel depth? Or verify if my understanding is right?

Pixel dept gives me the distance between camera and rendered pixel. Is this output a float for each pixel?
Then why divide PixelDepth with 2048?
A pixel thats more far away than 2048 gives then a value over 1.
A near pixel (shorter away than 2048) gives an value under 1.

The power makes values under 1 smaller and values over 1 bigger.

And then comes the clamp from 0 to 1. therefore the green has no more gradient because the clamp cuts the value 1. These were the pixel further away than 2048 units?.

Thanks

It simply makes it where it fades between the two colors over the distance of 2048. Once it is over that, it is solid There is still a gradient because it uses the divide, and then a lerp. If it used an if or some method based off of floor or ceil, then that would be a different story. Lerp is supposed to take in no more than 1 as a maximum value, hence they clamped it to prevent the strange behavior of using invalid alphas in a lerp.