FMX.MaterialSources.TLightMaterialSource.Diffuse

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Diffuse: TAlphaColor read GetDiffuse write SetDiffuse;

C++

__property System::Uitypes::TAlphaColor Diffuse = {read=GetDiffuse, write=SetDiffuse, nodefault};

Properties

Type Visibility Source Unit Parent
property published
FMX.MaterialSources.pas
FMX.MaterialSources.hpp
FMX.MaterialSources TLightMaterialSource

Description

Specifies the essential color of the material when the object is illuminated by pure white light.

Use Diffuse to set and get the diffuse 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, and the rest of the color properties set to null (Ambient, Emissive, Specular).

TLightMaterial.Diffuse.png

See Also