|
Phong Illumination / Shading |
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(0, .3, .3, .6), and 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 white. The new light source has the following model specifications: specular(0, .4, .4, 1) and diffuse(.4, .4, 0, 1). The first image is both light sources, and below that are each light source alone.
|
Both Light Sources |
|
Light Source #2 |
|
Light Source #1 |
No comments:
Post a Comment