# A3DGraphPointLightData

struct `A3DGraphPointLightData`

  Data for a point light source entity (`A3DGraphPointLight`)

  > 2.0

  A point light, or position light, is a light source with a given position in the world space. It illuminate in all directions, with the light rays fading over the distance. Basic lighting computations on objects will mainly depend on how far they are from such light sources.

  All colors within this structure are global indexes to RGB color codes. The actual values can be queried using `A3DGlobalGetGraphRgbColorData`.

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

  > `A3DGraphPointLightGet()`

  > `A3DGraphPointLightCreate()`

  > `A3DGraphRgbColorData`

  > `A3DGlobalGetGraphRgbColorData()`

  > `A3DGlobalInsertGraphRgbColor()`

  > `A3DGraphMaterialData`

  > `A3DGraphAmbientLightData`

  > `A3DGraphDirectionalLightData`

  > `A3DGraphSpotLightData`

  ## Index

  Variables

  - `m_uiAmbientColorIndex`
  - `m_uiDiffuseColorIndex`
  - `m_uiSpecularColorIndex`
  - `m_sLocation`
  - `m_dConstantAttenuation`
  - `m_dLinearAttenuation`
  - `m_dQuadraticAttenuation`

Variables

A3DUns32 `A3DGraphPointLightData.``m_uiAmbientColorIndex`
  `A3DUns32`

  The main or ambient color of the light source.

A3DUns32 `A3DGraphPointLightData.``m_uiDiffuseColorIndex`
  `A3DUns32`

  The diffuse color of the light source.

A3DUns32 `A3DGraphPointLightData.``m_uiSpecularColorIndex`
  `A3DUns32`

  The specular color of the light source.

A3DVector3dData `A3DGraphPointLightData.``m_sLocation`
  `A3DVector3dData`

  The light source position in world space coordinates.

A3DDouble `A3DGraphPointLightData.``m_dConstantAttenuation`
  `A3DDouble`

  Constant attenuation factor usually set to 1.0.

A3DDouble `A3DGraphPointLightData.``m_dLinearAttenuation`
  `A3DDouble`

  Linear attenuation factor.

A3DDouble `A3DGraphPointLightData.``m_dQuadraticAttenuation`
  `A3DDouble`

  Quadratic attenuation factor.

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