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 FDef :
TLightDef
- protected FSelfDef :
TLightDef
- protected FDefIsStandalone :
Boolean
- protected FAmbient :
TAlphaColorF
- protected FSpecular :
TAlphaColorF
- protected FIntensity :
Single
- 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;
- public procedure LoadFromDefinition ( const ADef : TLightDef ) ; virtual;
Properties
- public Def : TLightDefread FDef
- published Ambient : TAlphaColorF
- published Specular : TAlphaColorF
- published Intensity : Single
- 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