Shadow Mapping

Here you will find my implementation of shadowing mapping using the Percentage Closer Filtering (PCF) algorithm.  I basically generate the shadow map texture from the perspective of the light and its field of view.  Using the generated shadow map (shown below in the video), I project it back into the scene.  Before I finalize the scene, I use PCF to soften the jagged edges of the shadow by sampling the average of the texel by its surrounding texels.  I think for this project, I simply set it to be 3x3 sample region.



NOTE: my apologies for the video's frame rate.  My computer is very old and can't handle running the program and CamStudio.