Thanks for your advice, but I don't use trace to calculate the shadow. I think with one or two iterations it looks good, haven't tested it yet.