Well, that really depends on what you are doing. Shadows have varying length depending on where the light is. If you want the shadow length to vary, LoS wouldn't work for that.
Edit: There's also complications if the light is over the shadow casting object, but I have no idea what you are using this for so that makes advice more difficult. We don't even know how dynamic/accurate/flexible you need this to be.