FMX.MaterialSources.TLightMaterialSource.Ambient
Delphi
property Ambient: TAlphaColor read GetAmbient write SetAmbient;
C++
__property System::Uitypes::TAlphaColor Ambient = {read=GetAmbient, write=SetAmbient, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.MaterialSources.pas FMX.MaterialSources.hpp |
FMX.MaterialSources | TLightMaterialSource |
Description
Specifies the color of the material object that is reflected when the object is illuminated by an ambient light rather than a direct light source.
Use Ambient to set or get the ambient color of the current TLightMaterial of the TLightMaterialSource.
In the following image, the cone and the cube are linked to the same TLightMaterialSource, with Diffuse set to red, Ambient set to blue, and the rest of the color properties set to null (Emissive, Specular).