摘要 |
A method including identifying a set of shadow casters and a set of shadow receivers in a frame of a scene lighted by at least a first light source, constructing a first 3D grid from the first light source's point of view fully enclosing a first volume of the scene, projecting each of the one or more shadow casters and growing each cell of the first 3D grid that includes one or more projected casters. Constructing a second 3D grid from the first light source's point of view fully enclosing the first volume and growing each cell of the second 3D grid that includes at least a portion of one or more shadow receivers and for which a corresponding cell of the first 3D grid has been grown. Forming a third 3D grid by intersecting the first 3D grid with the second 3D grid and marking for rendering into a shadow map each shadow caster that intersects the third 3D grid.
|