A3DGraphSpotLightData
-
struct
A3DGraphSpotLightData Data for a spotlight source entity (
A3DGraphSpotLight)2.0A spotlight is a lighting source with a given position which casts lights within a specific direction. Only the objects within a given radius of the spotlight’s direction are illuminated, with the light rays fading over the distance. Spotlights can be interpreted as more restrictive point lights, where only a subset of the scene is illuminated from it.
All colors within this structure are global indexes to RGB color codes. The actual values can be queried using
A3DGlobalGetGraphRgbColorData.A3DGraphSpotLightDatais one of the four light source types provided by HOOPS. It is associated to thekA3DTypeGraphSpotLightentity type. The other available light sources areA3DGraphAmbientLightData,A3DGraphPointLightDataandA3DGraphDirectionalLightData.
Variables
-
A3DUns32
A3DGraphSpotLightData.m_uiAmbientColorIndex -
The main or ambient color of the light source.
-
A3DUns32
A3DGraphSpotLightData.m_uiDiffuseColorIndex -
The diffuse color of the light source.
-
A3DUns32
A3DGraphSpotLightData.m_uiSpecularColorIndex -
The specular color of the light source.
-
A3DVector3dData
A3DGraphSpotLightData.m_sDirection -
The direction of the spotlight, expressed in world space coordinates.
-
A3DDouble
A3DGraphSpotLightData.m_dFallOffAngle -
Spotlight angle.
-
A3DDouble
A3DGraphSpotLightData.m_dFallOffExponent -
Fall of factor, expressed as a scale of
m_dFallOffAngle: [0.0;1.0]
-
A3DVector3dData
A3DGraphSpotLightData.m_sLocation -
The light source position in world space coordinates.
-
A3DDouble
A3DGraphSpotLightData.m_dConstantAttenuation -
Constant attenuation factor usually set to 1.0.
-
A3DDouble
A3DGraphSpotLightData.m_dLinearAttenuation -
Linear attenuation factor.
-
A3DDouble
A3DGraphSpotLightData.m_dQuadraticAttenuation -
Quadratic attenuation factor.