< Zurück | Inhalt | Weiter >

10.4 DirectionalLight

A DirectionalLight is a light that is assumed to shine from an infinite distance—for example, to model sunlight. It allows a Vector3f object to be assigned to the light to specify the direction.

DirectionalLight can be very useful in providing simple 3D cues to the user of an application.

Illumination of surfaces depends upon the orientation of the surface relative to the DirectionalLight

vector, so a DirectionalLight is computationally more expensive that an AmbientLight.

NOTE DirectionalLight is an approximation of a shaft of light entering a scene, such as a shaft of sunlight entering a room through one glass wall.