Gorilla.Material.Shared
Unit Gorilla.Material.Shared.pasClasses
- TGorillaReferenceMaterial = class ( TColorMaterial )
- TGorillaReferenceMaterialSource = class ( TMaterialSource )
- TGorillaSharedMaterial = class ( TGorillaDefaultMaterial )
- TGorillaSharedMaterialSource = class ( TGorillaDefaultMaterialSource )
TGorillaReferenceMaterial
The reference material is just a proxy material forwarding to the linked shared material source. It is inherited from TColorMaterial to render something if users forget to link to a TGorillaSharedMaterial.
Ancestors
Members
Fields
Methods
- public constructor Create ( ASource : TGorillaReferenceMaterialSource ) ;
- protected procedure DoInitialize ( ) ; override;
- protected procedure DoChange
(
AContext :
TContext3D; AMaterial :
TGorillaSharedMaterial
)
;
virtual;
Overwrite this method to apply property changes on the linked shared material. If you do not override this method an abstract error will be raised.
- protected procedure DoApply
(
const
Context :
TContext3D
)
;
override;
The DoApply method will forward shader computation to the linked shared material.
Properties
TGorillaReferenceMaterialSource
A reference material holds a link to a shared material source. It uses the shader, textures and properties of the shared material. Besides that it is able to change current property values, to render parts individually.
Ancestors
Members
TGorillaSharedMaterial
This is a shared space for textures or other properties to be used in TGorillaReferenceMaterialSource instances.
Ancestors
Members
TGorillaSharedMaterialSource
A SharedMaterialSource is a shared space, where textures and other resources can be stored centrally. Referenced materials will have access to those data and its shader.