FMX.Materials.TLightMaterial.Specular

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Specular: TAlphaColor read FSpecular write FSpecular;

C++

__property System::Uitypes::TAlphaColor Specular = {read=FSpecular, write=FSpecular, nodefault};

Properties

Type Visibility Source Unit Parent
property public
FMX.Materials.pas
FMX.Materials.hpp
FMX.Materials TLightMaterial

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.

With no light, Specular has no effect. It defaults to white to reflect the light without altering its color. To set how shiny is the material, use the Shininess property.

In the following image, all the shapes are linked to the same TLightMaterial, with Diffuse set to red, Ambient set to blue, Emissive set to green, Specular set to white, and Shininess set to 30.

TLightMaterial Specular.png

See Also