A3DGraphDirectionalLightData

struct A3DGraphDirectionalLightData

Data for a directional light source entity (A3DGraphDirectionalLight)

2.0

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 A3DGlobalGetGraphRgbColorData.

A3DGraphDirectionalLightData is one of the four light source types provided by HOOPS. It is associated to the kA3DTypeGraphDirectionalLight entity type. The other available light sources are A3DGraphAmbientLightData, A3DGraphPointLightData and A3DGraphSpotLightData.

Variables

A3DUns32 A3DGraphDirectionalLightData.m_uiAmbientColorIndex

The main or ambient color of the light source.

A3DUns32 A3DGraphDirectionalLightData.m_uiDiffuseColorIndex

The diffuse color of the light source.

A3DUns32 A3DGraphDirectionalLightData.m_uiSpecularColorIndex

The specular color of the light source.

A3DDouble A3DGraphDirectionalLightData.m_dIntensity

Density.

A3DVector3dData A3DGraphDirectionalLightData.m_sDirection

Direction.