摘要 |
<p><P>PROBLEM TO BE SOLVED: To provide a game device and a game program for drawing shadows cast with two or more light sources realistically using a shadow volume. <P>SOLUTION: Two or more shadow volumes corresponding to respective light sources are previously prepared with respect to a character object. These shadow volumes are disposed based on the position coordinate of the character object in predetermined positions in respective game spaces. The value of a stencil buffer 16 is incremented which corresponds to each pixel of part which is on the back side of the shadow volume and is hidden in a topographic object, and the value of a stencil buffer 16 is decremented which corresponds to each pixel of part which is on the back side of the shadow volume and is hidden in the topographic object. Color information in a color buffer 14 is changed based on the value of the stencil buffer 16. <P>COPYRIGHT: (C)2004,JPO</p> |