Page 11: The Phong Lighting Model
Spring 2026 Sample Solution
The Phong lighting model adds the diffuse, specular, and ambient components together. The idea is that we make material appearances by combining the three separate effects. By controlling the amount of each, we can achieve different effects.
The model is controlled through the parameters:
- - the diffuse color. Controls the color of the diffusely lit parts of the object.
- - the specular color. Controls the color of the specular highlight.
- - the specular exponent. Controls how focused the highlights are.
- - the ambient color. Controls the color of objects when there is no other light.
Each of the parts of the model is controlled by a color. The brighter the color, the more of the light is reflected by that part of the model. Since the computation is reflectance, the reflectance is multiplied by the intensity of the light (for each color component).
Shading Parameters
The appearance of a surface in this model is defined by four primary parameters:
- (Diffuse Reflectivity): Defines the base color of the object. This determines the hue and brightness of the surfaces directly illuminated by a light source.
- (Specular Reflectivity): Sets the color of the specular highlight. For most materials, this is white (reflecting the light’s color), but for metals, it often takes on the color of the material itself.
- (Specular Exponent): A scalar value that dictates the “shininess” or focus of the highlights. A higher exponent results in a smaller, sharper hotspot, simulating a more polished surface.
- (Ambient Reflectivity): Determines the color and intensity of the object in areas where no direct light reaches, simulating constant background illumination.
Understanding Reflectance
Each component of the model is governed by a color value. In this context, brightness represents reflectivity. Bright white objects reflect all colors strongly. These colors provide a way to control the amount and color of what the surface reflects.
Because the model is based on reflectance, the final output is calculated by multiplying the material’s reflectivity by the intensity of the light source (I) for each color channel (Red, Green, and Blue). If either the light is dim or the material is highly absorptive (dark), the resulting reflection will be dark.
The resulting equation is:
This equation is applied for each light source.
How to use the parameters
The Phong model can achieve a variety of effects by controlling the parameters. Here is a demo that you can experiment with.
- The shininess (specular exponent) controls how focused the highlights are.
- The diffuse intensity (brightness of the diffuse and ambient colors) controls how bright the object is outside of the highlights.
- The specular color controls the color and brightness of the highlights. Typically, the color is somewhere between the base (diffuse) color of the material and white. Metallic surfaces tend to have highlights the same color as their base color, while plastic surfaces tend to have white highlights. The demo has a slider that blends between the two, so you can see the differences.
Summary
The Phong model is a versatile and efficient lighting model that has been the standard in computer graphics for decades. However, the parameters and equations were chosen because they look good enough and are simple enough to be efficient even on modest hardware. Better lighting models are derived from physical principles.
Next: Page 12 - Fancy Shading