Description | Hierarchy | Fields | Methods | Properties |
type TAd2dLightData = record
A record that contains light source settings.
LightType: TAd2dLightType; |
Diffuse: TAndorraColor; |
Specular: TAndorraColor; |
Ambient: TAndorraColor; |
Position: TAdVector3; |
ConstantAttenuation: single; |
LinearAttenuation: single; |
QuadraticAttenuation: single; |
LightType: TAd2dLightType; |
The type of the light. Can be a directional or a point light. |
Diffuse: TAndorraColor; |
The diffuse color of the light source. |
Specular: TAndorraColor; |
The speculat color of the light source. |
Ambient: TAndorraColor; |
The ambient color of the light source. |
Position: TAdVector3; |
The position of the light. If the light source is a directional light, position is equivalent to the direction of the light. |
ConstantAttenuation: single; |
The constant attenuation. Only used with pointlights. |
LinearAttenuation: single; |
The linear attenuation. Only used with pointlights. |
QuadraticAttenuation: single; |
The quadratic attenuation. Only used with pointlights. |