FMX.MaterialSources.TLightMaterialSource

From RAD Studio API Documentation
Jump to: navigation, search

FMX.MaterialSources.TMaterialSourceFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTLightMaterialSource

Delphi

TLightMaterialSource = class(TMaterialSource)

C++

class PASCALIMPLEMENTATION TLightMaterialSource : public TMaterialSource

Properties

Type Visibility Source Unit Parent
class public
FMX.MaterialSources.pas
FMX.MaterialSources.hpp
FMX.MaterialSources FMX.MaterialSources

Description

Defines a source of TLightMaterial.

Use TLightMaterialSource to link a TLightMaterial to 3D objects. The link is made through MaterialSource property of the 3D object.

By default, the color properties (Ambient, Emissive, Diffuse, Specular) are set to simulate the shadows added to the object by the source of light.

The material's texture is specified as a TBitmap. Specify the texture by setting the Texture property of the TLightMaterialSource.

The images show the effect of a light source over a 3D object linked to a TLightMaterialSource. In both examples, the cube is linked to a TLightMaterialSource with the specified texture, and the cone is linked to a TextureMaterialSource with no texture. In both cases the color properties have the default values.

TLigthMaterialSource On.png TLigthMaterialSource Off.png

See Also

Samples