Indeed, and it's (unsurprisingly) one of bagginsbill's - one that he left tantalisingly unfinished! It was part of an underwater environment that he did with Helgard over on Renderosity but never finished. I chased it up a few months ago and he helped me put this little bit of it together.
It's not like most other shaders - you have to manually enter the X, Y, Z coordinates of the camera you're rendering from into a node in the shader. Bagginsbill did a Python script using a callback fuction that automatically keeps this node updated, but I haven't got round to doing that part of it - manually entering the value is okay for me so far.
Here's a screenshot (explanation to follow in later posts):
The 'Camera_X_Y_Z' node is simply a 'User_Defined' (New Node > Math > user_defined) which is normally used to specify a user defined colour be specifying RGB values in the range 0.0 to 1.0. Bagginsbill pointed out that the internals of the Poser material treat vectors and colours as the same thing !?! Get your head around that concept
Camera X,Y,Z coordinates are in inches, regardless of your display units (mine are inches)
The Half_Distance defines how 'dense' the atmosphere is - the smaller the value, the thicker the fog. 500" is a good start (the 5,000" I have here was for a subtle atmospheric effect).
For more background,
here's my post on the Renderosity "Underwater Submarine" thread where I found the tantalisingly unfinished idea...
I also started a "
Distance From Camera To Point Being Rendered?" thread at RDNA, but bagginsbill had already abandoned ship there, although I managed to work out part of the solution on that thread.
Luckily bagginsbill saw the Renderosity post and said he'd moved to CGbytes, so I started a "Distance From Camera To Point Being Rendered" thread there, and he guided me to the solution above (any errors in that are mine!).
To avoid the need to keep thread-hopping I'll try and pull the most important bits from all those threads together here