You can use precise shadow masks which will create a shadow mask that matches the sprites shape, per-frame.