PointLight
defines a light that has a location in space and emits light in all directions evenly. This would be something similar to a light bulb. Typically this light's values are attenuated based on the distance of the point light and the object it illuminates.
In addition to a position, point lights also have a radius which can be used to attenuate the influence of the light depending on the distance between the light and the effected object.
A point light contributes to diffuse and specular reflections, which in turn depend on the orientation and position of a surface. A point light does not contribute to ambient reflections.
A PointLight is attenuated by multiplying the contribution of the light by an attenuation factor. The attenuation factor causes the the PointLight's brightness to decrease as distance from the light source increases. A PointLight's attenuation factor contains three values:
A PointLight is attenuated by the reciprocal of the sum of:
By default, the constant attenuation value is 1 and the other two values are 0, resulting in no attenuation.
|
|
|
|
|
|
|
|
|
|
|
|