|
----------------------------------------------------------------------------
=== Polygon function that has to do with light. See also the Light API =====
----------------------------------------------------------------------------
There are four properties that influence how light effects polygons, these are ambient, diffuse specular and specular_shining.
Every defined light that is activated (see the light API) is combined internally of
three types of lights (ambient, diffuse and specular)
By using these functions one can modify how a surface react with each type of light.
Different materials react differently For example
materials that tend to reflect light better (metals, marble etc ...)
will have higher values of the specular property.
The value given should be a positive number
The default value is 86. Typical values are between 0 to 500
Feel free to play with those values till you get the desired effect
Here is some more info about the light properties
Specular:
The specular property defines for a surface how close it is to an ideal reflecting surface
A mirror for example is a perfect reflecting surface.
Different materials have different values .For example
materials that tend to reflect light better (metals, marble etc ...)
will have higher values of the specular property.
Diffuse:
Diffuse light comes from a particular direction but is reflected evenly of the surface
Dull surfaces like solid matte plastic exhibit what is called diffuse reflection
Ambient:
Ambient light is light that doesn't come from any particular direction
Objects illuminated by ambient light are evenly lit on all surfaces.
|