Game Development Reference
In-Depth Information
The position of the viewer depends on whether we use a directional light or a
point light
The following formula calculates the intensity of the reflected diffuse light from an
object with a diffuse material component:
I = Ip Kd (N'.L')
The parameters of the preceding formula are as follows:
I : Intensity
Ip : The intensity of the point light
Kd : The object's diffuse reflection coefficient; 0.0 to 1.0 for each of the R, G,
and B values
N' : The normalized surface normal/vertex normal
L' : The normalized direction to the light source
. : Represents the dot product of the two vectors
Specular reflection
Specular reflection is the reflection of shiny surfaces. You will see a highlight on the
object/model. A shiny metal or plastic surface has a high specular component while
chalk or carpet has a very low specular component. The following diagram shows
the effect of different light components on geometry:
 
Search WWH ::




Custom Search