Shadow VolumeAlgorithm
High-level view of the algorithm
- Given the scene and a light source position, determine the shadow volume (harder than it sounds)
- Render the scene in two passes
- Draw scene with the light enabled,updating only fragments in unshadowed region
- Draw scene with the light disabled,updated only fragments in shadowed region
- But how to control update of regions?