ComputingShadow Volumes
Harder than you might think
- Easy for a single triangle, just project out three infinite polygons from the triangle, opposite the light position
- But shadow volume polygons should not intersect each other for invert trick to work
- For complex objects, projecting object’s 2D silhouette is a good approximation (flat objects are easy)
- Static shadow volumes can be pre-compiled