I am trying to use Cycles to create a shadow effect that will decrease intensity based on the length of the shadow. But I am only able to achieve this :
What I am doing is I am calculating transparency based on the distance to the point that's rendered. (might be dumb)
I don't want the shadows to overlap. I wouldn't mind to change the way I do it if there's a better solution.
Edit. This is what happens when I multiply the factor that used as factor to mix the shaders with the Ray Length :