Table of Contents
We can simplify the illumination of an object into three different types of lighting:
- Specular highlights
- Diffuse reflection
- Ambient lighting
Local Shading
Considering a point on a surface, we can treat it as a very small flat surface with a normal vector . The incoming light is represented by vector , and the observer's viewpoint is represented by vector .
Diffuse Reflection
In diffuse reflection, the energy of light received is influenced by the angle between the light direction and the surface normal.
Lambert's cosine law
Light Falloff
The principle of light flux conservation states that light intensity from a point source decreases with distance.
This means that the farther an object is from the source, the less intense the light per unit area.
Lambertian Shading
To combine the effects of diffuse and specular reflections, consider a coefficient representing the absorption of specific wavelengths (colors) for the diffuse component. In this model, the viewer vector does not influence the diffuse reflection because it is isotropic, meaning it reflects light uniformly in all directions.
Specular Highlight
When the viewer direction is very close to the direction of reflected light, specular highlights become visible.
This is further analyzed by considering the half vector , which is the normalized vector halfway between the incoming light vector and the viewer vector . Specular highlights are more prominent when is aligned closely with the normal vector :
Where is the highlight coefficient, the power is the tolerance of highlight area. This formula highlights how specular reflections vary based on the material's properties and the relative positions of the light source, the observer, and the surface normal.
The larger we chose, the less angle tolerance we have to decide the specular area.
Ambient Light
Ambient lighting is indeed unique in that it does not depend on the direction of the light source or the viewing angle. It represents the base level of light present in a scene, simulating indirect light that is scattered and reflected by other surfaces in the environment.
We can simplify it to: Overall the Blinn-Phong Model: