FMX.MaterialSources.TLightMaterialSource

Delphi
TLightMaterialSource = class(TMaterialSource)
C++
class PASCALIMPLEMENTATION TLightMaterialSource : public TMaterialSource
Contents
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.
See Also
- FMX.MaterialSources.TMaterialSource
- FMX.MaterialSources.TColorMaterialSource
- FMX.MaterialSources.TTextureMaterialSource
- FMX.Materials.TLightMaterial
- FireMonkey 3D
- Creating the User Interface (FireMonkey 3D Tutorial)