Show: Delphi C++
Display Preferences

FMX.Materials.TLightMaterialSource

From XE3 API Documentation
Jump to: navigation, search

FMX.Types3D.TMaterialSourceFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObject
TLightMaterialSource

Delphi

TLightMaterialSource = class(TMaterialSource)

C++

class PASCALIMPLEMENTATION TLightMaterialSource : public Fmx::Types3d::TMaterialSource

Properties

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

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

Personal tools
Translations