FMX.MaterialSources.TLightMaterialSource.Specular
Delphi
property Specular: TAlphaColor read GetSpecular write SetSpecular;
C++
__property System::Uitypes::TAlphaColor Specular = {read=GetSpecular, write=SetSpecular, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.MaterialSources.pas FMX.MaterialSources.hpp |
FMX.MaterialSources | TLightMaterialSource |
Description
Specifies the color of the light of a specular reflection from a shiny object.
Use Specular to set or get the color of the specular reflection of the current TLightMaterial of the TLightMaterialSource.
To set how shiny is the material, use the Shininess property.
In the following image, all the shapes are linked to the same TLightMaterialSource, with Diffuse set to red, Ambient set to blue, Emissive set to green, Specular set to white, and Shininess set to 30.