摘要 |
The effects of lighting and resulting shadows within a computer simulated three-dimensional scene are modeled by rendering light depth data and a light color data for each of the light sources. The light depth data is compared to a camera depth data to determine if a point within the scene is lighted by the various light sources. Accumulated light data is produced by combining those portions of the light color images determined to be lighting the scene and stored in the frame buffer. The resulting accumulated light data is then combined with a camera color image to produce a lighted camera image that can be further processed and eventually displayed on a computer display screen. The light color image can be static or dynamic. The various images and manipulations can include individual pixel data values, multiple-pixel values, polygon values, texture maps, and the like.
|