Assimp
v4.1. (December 2018)
|
Inherits CX3DImporter_NodeElement.
Public Member Functions | |
CX3DImporter_NodeElement_Light (EType pLightType, CX3DImporter_NodeElement *pParent) | |
![]() | |
virtual | ~CX3DImporter_NodeElement () |
The destructor, virtual. More... | |
Public Attributes | |
float | AmbientIntensity |
Specifies the intensity of the ambient emission from the light. More... | |
aiVector3D | Attenuation |
float | BeamWidth |
Specifies an inner solid angle in which the light source emits light at uniform full intensity. More... | |
aiColor3D | Color |
specifies the spectral colour properties of both the direct and ambient light emission as an RGB value. More... | |
float | CutOffAngle |
The light source's emission intensity drops off from the inner solid angle (beamWidth) to the outer solid angle (cutOffAngle). More... | |
aiVector3D | Direction |
Specifies the direction vector of the illumination emanating from the light source in the local coordinate system. More... | |
bool | Global |
float | Intensity |
Specifies the brightness of the direct emission from the light. More... | |
aiVector3D | Location |
Specifies a translation offset of the centre point of the light source from the light's local coordinate system origin. More... | |
float | Radius |
Specifies the radial extent of the solid angle and the maximum distance from location that may be illuminated by the light source. More... | |
![]() | |
std::list< CX3DImporter_NodeElement * > | Child |
Child elements. More... | |
std::string | ID |
ID of the element. Can be empty. In X3D synonym for "ID" attribute. More... | |
CX3DImporter_NodeElement * | Parent |
Parent element. If nullptr then this node is root. More... | |
const EType | Type |
This struct hold <TextureTransform> value.
|
inline |
Constructor
[in] | pParent | - pointer to parent node. |
[in] | pLightType | - type of the light source. |
float CX3DImporter_NodeElement_Light::AmbientIntensity |
Specifies the intensity of the ambient emission from the light.
CX3DImporter_NodeElement_Light::Attenuation |
PointLight node's illumination falls off with distance as specified by three attenuation coefficients. The attenuation factor is: "1 / max(attenuation[0] + attenuation[1] * r + attenuation[2] * r2, 1)", where r is the distance from the light to the surface being illuminated.
float CX3DImporter_NodeElement_Light::BeamWidth |
Specifies an inner solid angle in which the light source emits light at uniform full intensity.
aiColor3D CX3DImporter_NodeElement_Light::Color |
specifies the spectral colour properties of both the direct and ambient light emission as an RGB value.
float CX3DImporter_NodeElement_Light::CutOffAngle |
The light source's emission intensity drops off from the inner solid angle (beamWidth) to the outer solid angle (cutOffAngle).
aiVector3D CX3DImporter_NodeElement_Light::Direction |
Specifies the direction vector of the illumination emanating from the light source in the local coordinate system.
CX3DImporter_NodeElement_Light::Global |
Field that determines whether the light is global or scoped. Global lights illuminate all objects that fall within their volume of lighting influence. Scoped lights only illuminate objects that are in the same transformation hierarchy as the light.
float CX3DImporter_NodeElement_Light::Intensity |
Specifies the brightness of the direct emission from the light.
aiVector3D CX3DImporter_NodeElement_Light::Location |
Specifies a translation offset of the centre point of the light source from the light's local coordinate system origin.
float CX3DImporter_NodeElement_Light::Radius |
Specifies the radial extent of the solid angle and the maximum distance from location that may be illuminated by the light source.