Data for a directional light source entity (
A directional light simulates a source which is far away from the scene. In that situation, all light rays are coming from the same direction, regardless of the position of the illuminated object or the viewer. The illumination only depends on the light orientation, and not its position.
All colors within this structure are global indexes to RGB color codes. The actual values can be queried using
A3DGraphDirectionalLightDatais one of the four light source types provided by HOOPS. It is associated to the
kA3DTypeGraphDirectionalLightentity type. The other available light sources are
The direction of the light source is expressed with
m_sDirectionin world space coordinates.
- Ligthing color
The color of a lighting source is usually described with a single color, referenced to by
m_uiAmbientColorIndexwhich is applied to the receiving material. Different implementations can take benefit from making the distinction between ambient, diffuse and specular colors upon computing light. These additional information can be written into
m_uiSpecularColorIndex. When ununsed, these values are either set to the same value as