Applying a sprite-based shadow