摘要 |
A computer-implemented method for computing a shadow factor for a light source at a particular shading point includes computing a depth map that includes an array of pixels, wherein pixeis in the depth map have a depth value that indicates a depth from the light source to a portion of an occluding object contained by the pixel. The method further includes, for a number of pixels in the depth map, computing an amount of the light source occluded by a portion of an object represented by the depth map pixel, and computing a shadow factor based on the computed amounts of the light source occluded.
|