I was doing a Shadow example myself, but got stuck because I don't knwo what offset is, and can't find any examples here....

So my shadow only works for cubes.