FMX.Materials.TLightMaterial.Diffuse
Delphi
property Diffuse: TAlphaColor read FDiffuse write FDiffuse;
C++
__property System::Uitypes::TAlphaColor Diffuse = {read=FDiffuse, write=FDiffuse, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.Materials.pas FMX.Materials.hpp |
FMX.Materials | TLightMaterial |
Description
Specifies the essential color of this material when the object is illuminated by pure white light.
The diffuse color is the most instinctive meaning of an object's color. Use Diffuse to set or get the diffuse color of the current TLightMaterial. With no light, Diffuse has no effect.
In the next image, the cone and the cube are linked to the same TLightMaterial, with Diffuse set to red, and the rest of the color properties set to null (Ambient, Emissive, Specular).