TGorillaLight
Provides an extended light source component with additional properties used by default Gorilla3D shader, compared to the default FMX TLight.
Remarks
You are allowed to configure specular and ambient color of the light and to manipulate the attenuation values for shading.Ancestors
Members
Fields
- protected FAmbient :
TAlphaColorF
- protected FSpecular :
TAlphaColorF
- protected FConstantAttenuation :
Single
- protected FLinearAttenuation :
Single
- protected FQuadraticAttenuation :
Single
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected function GetAmbient ( ) : TAlphaColorF ; virtual;
- protected procedure SetAmbient ( AValue : TAlphaColorF ) ; virtual;
- protected function GetSpecular ( ) : TAlphaColorF ; virtual;
- protected procedure SetSpecular ( AValue : TAlphaColorF ) ; virtual;
- protected procedure SetConstantAttenuation ( const AValue : Single ) ; virtual;
- protected procedure SetLinearAttenuation ( const AValue : Single ) ; virtual;
- protected procedure SetQuadraticAttenuation ( const AValue : Single ) ; virtual;
Properties
- published Ambient : TAlphaColorF
- published Specular : TAlphaColorF
- published ConstantAttenuation : Single
A constant factor applied to the attenuation of a light.
read FConstantAttenuation
write SetConstantAttenuation - published LinearAttenuation : Single
A linear factor applied to the attenuation of a light.
read FLinearAttenuation
write SetLinearAttenuation - published QuadraticAttenuation : Single
A quadratic factor applied to the attenuation of a light.
read FQuadraticAttenuation
write SetQuadraticAttenuation