Phong Illumination on Scene |
The purpose of this assignment was to implement the Phong Illumination model in the ray tracer assignment. In this picture there are 3 light models (format: (r, g, b, intensity)):
ambient ( 1, 1, 1, .2 )
diffuse ( .4, .4, .4, 1 )
specular ( 1, 1, 1, 1
For an "Extra", I implemented another Light Source.
To show the differences with the different light sources and experiment with colors, I made the spheres an off-white (0.9, 0.9, 0.9). The Normal light source is the same as the light source above. The new light sources have the following model specifications:
specular ( 1, 0, 0, 1 )
diffuse ( 1, 0, 0, 1)
Green Light
diffuse ( 0, 1, 0, 1 )
specular ( 0, 1, 0, 1 )
Blue Light
diffuse ( .1, .1, 1, 1 )
specular ( .1, .1, 1, 1 )
3 light sources, Red, Green, and Blue |
Red and Normal light |
Blue and Normal light |
Red and Blue, with Normal Light |
No comments:
Post a Comment