摘要 |
PROBLEM TO BE SOLVED: To accelerate processing by calculating a shadow value from light source information and visual point information obtained by invesely transforming modeling transformation, the coordinate information of a modeling coordinate system and normal information so as to correspond to more general modeling transformation and various light sources without necessitating the calculation of a normal vector. SOLUTION: A light source processing setting part 15 sets information concerning light source processing such as the diffusion reflecting coefficient, the mirror surface reflecting coefficient, the ambient light value, a light source position, a light source model of an object, and a light source information storing part 16. A modeling transformation setting part 18 sets information on modeling transformation, stores it in a modeling transformation storing part 19 and stores information on next (1) and (2) in the part 16. (1) is result information obtained inversely transforming modeling transformation with respect to a light source, a visual point of light source vector and a visual point vector. (2) is a scaling ratioδuniquely fixed concerning a distance. A light source processing calculation part 17 reads information of (1) and (2) to calculate the shadow value.
|