# 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`.

  > `A3DGraphDirectionalLightGet()`

  > `A3DGraphDirectionalLightCreate()`

  > `A3DGraphRgbColorData`

  > `A3DGlobalGetGraphRgbColorData()`

  > `A3DGlobalInsertGraphRgbColor()`

  > `A3DGraphMaterialData`

  > `A3DGraphAmbientLightData`

  > `A3DGraphPointLightData`

  > `A3DGraphSpotLightData`

  Directional light source data.

  > 2.0

  ## Index

  Variables

  - `m_uiAmbientColorIndex`
  - `m_uiDiffuseColorIndex`
  - `m_uiSpecularColorIndex`
  - `m_dIntensity`
  - `m_sDirection`

Variables

A3DUns32 `A3DGraphDirectionalLightData.``m_uiAmbientColorIndex`
  `A3DUns32`

  The main or ambient color of the light source.

A3DUns32 `A3DGraphDirectionalLightData.``m_uiDiffuseColorIndex`
  `A3DUns32`

  The diffuse color of the light source.

A3DUns32 `A3DGraphDirectionalLightData.``m_uiSpecularColorIndex`
  `A3DUns32`

  The specular color of the light source.

A3DDouble `A3DGraphDirectionalLightData.``m_dIntensity`
  `A3DDouble`

  Density.

A3DVector3dData `A3DGraphDirectionalLightData.``m_sDirection`
  `A3DVector3dData`

  Direction.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...