The Light type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| Layer |
This field tell us the layer the model belongs to
(Inherited from Model.) | |
| LightAmbient |
This field represents the ambient light
| |
| LightAttenuationType |
Selects one of the three light attenuation factors
0 - Constant
1 - Linear
2 - Cuadratic
| |
| LightAttenuationValue |
Attenuation of light value, related with attenuation type
| |
| LightDiffuse |
This field represents the diffuse light
| |
| LightOn |
If true, light is activated, if false light is turned off
| |
| LightSpecular |
This field represents the specular light
| |
| Position |
This vector represents the Model position
(Inherited from Model.) | |
| SpotCutOff |
This field represents the angle in degrees of the spot cone measured from its axis (spot direction)
Its values are between 0 and 90 degrees
If SpotCutOff is 180, SpotDirection is not worth
| |
| SpotDirection |
This field represents the light (spot) direction
| |
| SpotExponent |
Higher spot exponents result in a more focused light source, regardless of the spot cutoff angle.
The initial spot exponent is 0, resulting in uniform light distribution.
Only values in the range [0,128]
| |
| Visible |
This field represent the visibility of the model
(Inherited from Model.) | |
| VisibleLeftEye |
This field represents if the model can be seen by the left eye
(Inherited from Model.) | |
| VisibleRightEye |
This field represents if the model can be seen by the left eye
(Inherited from Model.) |