FireMonkey 2 MaterialSource Components

preview_player
Показать описание
In RAD Studio XE3 and FireMonkey 2, a new context shader creates and defines FireMonkey filters, materials and context for 3D objects. The new FMX.Types3D.TTexture class replaces the use of bitmap textures. This class uses GPU memory to store real data. TTexture is a limited class, but offers support for textures with different pixel formats, behavior and styles. The new material system is based only on shaders, and allows an unlimited variation of lighting and materials in one application. The new material system can be found in the new FMX.Materials unit and at design time in Tool Palette under the Materials category. A material is linked to 3D objects through the TMaterialSource object that can be positioned anywhere in a form. Each FireMonkey 3D object has a MaterialSource property, which links a material source to the current object. Extruded objects have additional MaterialShaftSource and MaterialBackSource properties. Each is of type TMaterialSource. This quick video introduces you to the new MaterialSource components you can use in your Windows and Mac FireMonkey 3D applications.
Рекомендации по теме