I've been working on some features for another game I want to make (after my gauntlet remake) which has animated models casting shadows. I'll release the code when I've done a little more, although it has a few drawbacks that I am going to use as features.
The way I do them is by taking a render (or multiple renders) from the light's position and orientation (for a spot or point light(multiple renders)) and copying the render to a texture and applying this texture over the level/mesh in such a way that shadows are shown on the mesh. There are a few ways of doing them and a few tricks you may need to use when designing your levels but I'll hopefully have something to post in a few days.
The way I do them is by taking a render (or multiple renders) from the light's position and orientation (for a spot or point light(multiple renders)) and copying the render to a texture and applying this texture over the level/mesh in such a way that shadows are shown on the mesh. There are a few ways of doing them and a few tricks you may need to use when designing your levels but I'll hopefully have something to post in a few days.