Dynamic shadow mapping sample.The sample demonstrates how to add a dynamic light to the scene and generate dynamic shadows for scene objects based on the light in your XNA games.

Download the sample.