Hi all,
I’m trying to add fog in an unlit shader graph but can’t work out how to interpret the Fog Node’s density value. The documentation states that the density value is in clip space, so I assumed it would be relative to the camera’s clipping planes? Is this incorrect?
For example, if I create a simple unlit graph that writes fog density directly to the color output…
… and create a simple scene…
…If I move the cubes, the shader behaves in reverse to how I expected - they get darker (the fog density gets less) as they get further away.
And if I move the camera instead, nothing happens to the fog density value at all (cubes are colored the same as in the first image).
So I feel I’m clearly misunderstanding how this value is to be used. Any help is much appreciated!
Thanks.
-andy.




