Gorilla.Material.Layered

Unit Gorilla.Material.Layered.pas

Classes

TGorillaLayeredMaterialCollection

The material collections holds all renderable sub materials. All materials in this collection will be rendered in order!

Ancestors

Members

TGorillaLayeredMaterialSource

A LayeredMaterialSource is a container of multiple sub materials.

Remarks

It is important that those sub materials do not clear the context, otherwise it will produce unexpected behaviour. If the materials collection is empty, the renderer will render the complete buffer with black color. To add sub materials simply add those to the material collection: SubMaterialEntry := MyLayeredMaterialSource.Materials.Add(); SubMaterialEntry.Material := MySubMaterialSource;

Ancestors

Members