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.

Variables

A3DUns32 A3DGraphPointLightData.m_uiAmbientColorIndex

The main or ambient color of the light source.

A3DUns32 A3DGraphPointLightData.m_uiDiffuseColorIndex

The diffuse color of the light source.

A3DUns32 A3DGraphPointLightData.m_uiSpecularColorIndex

The specular color of the light source.

A3DVector3dData A3DGraphPointLightData.m_sLocation

The light source position in world space coordinates.

A3DDouble A3DGraphPointLightData.m_dConstantAttenuation

Constant attenuation factor usually set to 1.0.

A3DDouble A3DGraphPointLightData.m_dLinearAttenuation

Linear attenuation factor.

A3DDouble A3DGraphPointLightData.m_dQuadraticAttenuation

Quadratic attenuation factor.