Lighting
There are just a few significant variables in the basic lighting equation:
- The unit vector $\V{n}$ normal to the surface.
- The unit vector $\V{l}$ toward the light.
- The unit vector $\V{v}$ toward the viewer.
- The color of the object $\V{c}_o$.
- The color of the light source $\V{c}_l$.
The “half-angle” vector $\V{h}$ is half-way between the light vector $\V{l}$ and the view vector $\V{v}$.