next up previous contents
Next: 10.4.1 Fresnel Reflection Up: 10 Lighting Techniques Previous: 10.3 Gloss Maps   Contents


10.4 Other Lighting Models

Up to this point we have largely discussed the Phong lighting model. The diffuse and specular terms for a single light are given by the following equation:

\begin{displaymath}
d_{m} d_{l} \max(\vec{N} \cdot \vec{L},0) + s_{m} s_{l} \max(\vec{H} \cdot \vec{N},0)^{n}
\end{displaymath}

Section 10.1.1 discusses the use of sphere mapping to replace the OpenGL per-vertex specular illumination computation with one performed at each pixel. The specular contribution in the texture map is computed using the Phong formulation above. However, the Phong model can be substituted with other bi-directional reflectance functions to achieve other lighting effects. Since the texture coordinates are computed with a sphere mapping function, the resulting texture mapping operation accurately approximates view-dependent specular reflectance distributions.



Subsections

2001-01-10