ABSTRACT

A lighting model is a specific algorithm or a mathematical formula for computing the color of a surface, the goal being some level of similarity to the real-world appearance of a physical surface. This can be compared to a shading model or shader, which implies something more arbitrary; lighting models are a subclass of all shading models. It is of course very, very common to write shaders that implement lighting models.