I would like to do make the shadows fade away the distances like a mist, the reason for this is to avoid the straight clipping from shadows. I’m able to achieve this effect by combining two materials, one with the receive shadows on and the other one off. After that I’m using camera depth to combine them.
I wonder if there’s a way to do this with only the lamp? Using this method I’ve had to do this with every single material which is very inefficient. Besides that it has to calculate two materials that’s almost identical which I assume decrease the performance.
By the way, here’s the setup:
ShadowFade.blend (552 KB)