Befor i have to format, this Script work only with one lightsource but i know how to add a second or third lightsource...
Yes the blackness of the shadow is distance based and lightrange.

INFO:
I start to work on the script, but it isnt easy to become the same result.
Actually i have a trace problem the shadow... but im tired so i cant find the mistake in the script...

MFG Ralph