The Light type exposes the following members.

# Constructors

Name | Description | |
---|---|---|

Light | Overloaded. |

# Methods

Name | Description | |
---|---|---|

CopyIModel |
This methods returns a copy of the light Model
(Overrides Model..::.CopyIModel()()().) | |

DrawHead |
This method should draw the object as it would look like if we look at it through an eye located between the 2 observer eyes
(Overrides Model..::.DrawHead()()().) | |

DrawLeftEye |
This method should draw the object as it would look like if we look at it through the observer's left eye
(Overrides Model..::.DrawLeftEye()()().) | |

DrawRightEye |
This method should draw the object as it would look like if we look at it through the observer's right eye
(Overrides Model..::.DrawRightEye()()().) | |

Equals | (Inherited from Object.) | |

Finalize | (Inherited from Object.) | |

GetHashCode | (Inherited from Object.) | |

GetType | (Inherited from Object.) | |

MaxDistanceToObserver |
This method claculates the maximun distance to the observer
(Inherited from Model.) | |

MemberwiseClone | (Inherited from Object.) | |

SetLightAmbient |
This method sets de ambient light
| |

SetLightDiffuse |
This method sets de diffuse light
| |

SetLightSpecular |
This method sets de specular light
| |

ToString | (Inherited from Object.) |

# Fields

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
| |

_lightNum |
This field represents the light number
| |

_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]
| |

_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 right eye
(Inherited from Model.) |

# 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.) |