A3DGraphAmbientLightData
Fields
Detailed Description
-
struct A3DGraphAmbientLightData
Data for an ambient light source entity (``)
An ambient light simulates lighting that bounces everywhere and thus comes from no specific location. Ambient lights illuminate every face of an object regardless of their position or orientation.
- Version
2.0
All colors within this structure are global indexes to RGB color codes. The actual values can be queried using
A3DGlobalGetGraphRgbColorData
.A3DGraphAmbientLightData
is one of the four light source types provided by HOOPS. It is associated to thekA3DTypeGraphAmbientLight
entity type. The other available light sources areA3DGraphPointLightData
,A3DGraphSpotLightData
andA3DGraphDirectionalLightData
.See also
See also
See also
See also
See also
See also
See also
- Ligthing color
The color of a lighting source is usually described with a single color, referenced to by
m_uiAmbientColorIndex
which is applied to the receiving material. Different implementations can take benefit from making the distinction between ambient, diffuse and specular colors upon computing light. These additional information can be written intom_uiDiffuseColorIndex
andm_uiSpecularColorIndex
. When ununsed, these values are either set to the same value asm_uiAmbientColorIndex
orA3D_DEFAULT_COLOR_INDEX
.