Is it possible to determine if an object is completely in a shadow?
I am using projective shadow mapping, only one light for now. I’m trying to think of a way to tell if an object is completely in the shadow or not.
The only way I can think of is render the scene minus the object from the light’s POV and save it. Then render the scene with the object from the light’s POV, and compare it with the first depthmap. This seems terribly slow and clumsy.
I’m thinking about per-pixel techniques, but per-triangle would work also… Does this even make a difference? It seems to be a hard problem, but maybe I’m overlooking something.
Thanks