How to create a custom shadow for a mesh?

Well, just for others to know, the best result so far after lots of adjustments is a Light Function which can be used in most of the stuff I was thinking previously. As soon I finish the job I will share the results for everyone to see.