Gorilla.Material.Types
Unit Gorilla.Material.Types.pasClasses
- TGorillaTexturePoolEntry = class ( TCollectionItem )
- TGorillaTexturePool = class ( TCollection )
- TGorillaBitmapPoolEntry = class ( TCollectionItem )
- TGorillaBitmapPool = class ( TCollection )
Records
- record TInputVariable
- record TTextureListEntry
- record TAlphaColorHelper
Enumerations
- enum TInputVariableType = ( ivtDefault, ivtInternal, ivtReference ) ;
- enum TGorillaShadowMethod = ( ShadowMapping, VarianceShadowMapping, FaketracingShadows ) ;
Constants
- const GORILLA_MATERIAL_TEXTURE_0 : string = "Texture0";
- const GORILLA_MATERIAL_TEXTURE_SPECULARMAP : string = "SpecularMapTexture";
- const GORILLA_MATERIAL_TEXTURE_NORMALMAP : string = "NormalMapTexture";
- const GORILLA_MATERIAL_TEXTURE_POM : string = "POMTexture";
- const GORILLA_MATERIAL_TEXTURE_DISPLACEMENTMAP : string = "DisplacementMapTexture";
- const GORILLA_MATERIAL_TEXTURE_DEPTH : string = "DepthTexture";
- const GORILLA_MATERIAL_TEXTURE_REFLECTION : string = "ReflectionTexture";
- const GORILLA_MATERIAL_TEXTURE_REFRACTION : string = "RefractionTexture";
- const GORILLA_MATERIAL_TEXTURE_SHADOWMAP_X : string = "ShadowMapTexture";
- const GORILLA_MATERIAL_TEXTURE_SHADOWMAP_0 : string = "ShadowMapTexture0";
- const GORILLA_MATERIAL_TEXTURE_SHADOWMAP_1 : string = "ShadowMapTexture1";
- const GORILLA_MATERIAL_TEXTURE_SHADOWMAP_2 : string = "ShadowMapTexture2";
- const GORILLA_MATERIAL_TEXTURE_SHADOWMAP_3 : string = "ShadowMapTexture3";
- const GORILLA_MATERIAL_TEXTURE_SHADOWMAP_4 : string = "ShadowMapTexture4";
- const GORILLA_MATERIAL_TEXTURE_SHADOWMAP_5 : string = "ShadowMapTexture5";
- const GORILLA_MATERIAL_TEXTURE_SHADOWMAP_6 : string = "ShadowMapTexture6";
- const GORILLA_MATERIAL_TEXTURE_SHADOWMAP_7 : string = "ShadowMapTexture7";
- const GORILLA_MATERIAL_TEXTURE_GEOMETRY_X : string = "GeometryTexture";
- const GORILLA_MATERIAL_TEXTURE_GEOMETRY_FRONT : string = "GeometryTexture0";
- const GORILLA_MATERIAL_TEXTURE_GEOMETRY_BACK : string = "GeometryTexture1";
- const GORILLA_MATERIAL_TEXTURE_GEOMETRY_LEFT : string = "GeometryTexture2";
- const GORILLA_MATERIAL_TEXTURE_GEOMETRY_RIGHT : string = "GeometryTexture3";
- const GORILLA_MATERIAL_TEXTURE_GEOMETRY_TOP : string = "GeometryTexture4";
- const GORILLA_MATERIAL_TEXTURE_GEOMETRY_BOTTOM : string = "GeometryTexture5";
- const GORILLA_INPUTVAR_INTERNAL_MVPMATRIX : string = "ModelViewProjMatrix";
- const GORILLA_INPUTVAR_INTERNAL_MVPMATRIX_IT : string = "ModelViewProjMatrixIT";
- const GORILLA_INPUTVAR_INTERNAL_MODELMATRIX : string = "ModelMatrix";
- const GORILLA_INPUTVAR_INTERNAL_MODELMATRIX_IT : string = "ModelMatrixIT";
- const GORILLA_INPUTVAR_INTERNAL_EYEPOS : string = "EyePos";
- const GORILLA_INPUTVAR_INTERNAL_CAMERA : string = "CameraMatrix";
- const GORILLA_INPUTVAR_INTERNAL_INVCAMERA : string = "CameraMatrixInv";
- const GORILLA_INPUTVAR_INTERNAL_PROJECT : string = "ProjectionMatrix";
- const GORILLA_INPUTVAR_INTERNAL_SCREEN : string = "ScreenMatrix";
- const GORILLA_MATERIAL_INPUTNAME_DEPTH : string = "DepthTexture";
- const GORILLA_MATERIAL_INPUTNAME_REFLECTION : string = "ReflectionTexture";
- const GORILLA_MATERIAL_INPUTNAME_REFRACTION : string = "RefractionTexture";
- const GORILLA_MATERIAL_INPUTNAME_GEOMETRY : string = "GeometryTexture";
- const GORILLA_MATERIAL_INPUTNAME_SHADOWMAPX : string = "ShadowMapTexture%%d";
- const GORILLA_MATERIAL_INPUTNAME_SHADOWMAP0 : string = "ShadowMapTexture0";
- const GORILLA_MATERIAL_INPUTNAME_SHADOWMAP1 : string = "ShadowMapTexture1";
- const GORILLA_MATERIAL_INPUTNAME_SHADOWMAP2 : string = "ShadowMapTexture2";
- const GORILLA_MATERIAL_INPUTNAME_SHADOWMAP3 : string = "ShadowMapTexture3";
- const GORILLA_MATERIAL_INPUTNAME_SHADOWMAP4 : string = "ShadowMapTexture4";
- const GORILLA_MATERIAL_INPUTNAME_SHADOWMAP5 : string = "ShadowMapTexture5";
- const GORILLA_MATERIAL_INPUTNAME_SHADOWMAP6 : string = "ShadowMapTexture6";
- const GORILLA_MATERIAL_INPUTNAME_SHADOWMAP7 : string = "ShadowMapTexture7";
- const GORILLA_SHADERDATA_OPTION_CLIPPLANE : Integer = $1;
- const GORILLA_SHADERDATA_OPTION_TRANSLUCENT : Integer = $2;
Mics. types
- type PInputVariable = pointer to TInputVariable;
- type PTextureListEntry = pointer to TTextureListEntry;
- type TContextShaderVariableDynArray = array of TContextShaderVariable;
TInputVariableType
TGorillaTexturePoolEntry
Representing an entry inside of a TGorillaTexturePool collection, to easily store multiple textures and not to declare each texture hardcoded in the material class.
Ancestors
Members
Fields
- protected FName :
string
- protected FTiling :
TPointF
- protected FTexture :
TTexture
- protected FIsDynamic :
Boolean
- protected FIgnoreInArray :
Boolean
- protected FShaderKind :
TContextShaderKind
Methods
- published constructor Create ( ACollection : TCollection ) ;
- published destructor Destroy ( ) ;
- protected function GetDisplayName ( ) : string ; override;
- protected procedure SetDisplayName ( const AValue : string ) ; override;
Properties
- published Tiling : TPointF
- published Texture : TTexture
- published IsDynamic : Boolean
Get or set if this texture comes from runtime / production content. This is used for depth, reflection and refraction textures, which will be generated by a separated render pass.
read FIsDynamic
write FIsDynamic - published IgnoreInArray : Boolean
If in TGorillaTexturePool "DeclareAsArray" is set to TRUE, we can influence by this property if the texture will be included in the texture pool array.
read FIgnoreInArray
write FIgnoreInArray - published ShaderKind : TContextShaderKind
TGorillaTexturePool
Defines a default collection pool for texture references. This component should be used in a TMaterial instance in combination with TGorillaBitmapPool instance in the corresponding TMaterialSource.
Ancestors
Members
TGorillaBitmapPoolEntry
Representing a texture bitmap pool entry, to easily store multiple bitmaps without declaring each in the materialsource class. This is the basis for the runtime shader material to build scriptable shaders by a designer.
Ancestors
Members
Fields
- protected FName :
string
- protected FTiling :
TPointF
- protected FBitmap :
TGorillaTextureBitmap
- protected FIsDynamic :
Boolean
- protected FIgnoreInArray :
Boolean
- protected FShaderKind :
TContextShaderKind
Methods
- published constructor Create ( ACollection : TCollection ) ;
- published destructor Destroy ( ) ;
- protected function GetDisplayName ( ) : string ; override;
- protected procedure SetDisplayName ( const AValue : string ) ; override;
- protected procedure SetTiling ( const AValue : TPointF ) ; virtual;
- protected procedure SetBitmap ( const AValue : TGorillaTextureBitmap ) ; virtual;
- protected procedure AssignTo ( ADest : TPersistent ) ; override;
- protected procedure DoOnBitmapChanged ( ASender : TObject ) ; virtual;
Properties
- published Name : string
Get or set the display name of a bitmap pool entry (equivalent to public DisplayName field).
read GetDisplayName
write SetDisplayName - published Tiling : TPointF
- published Bitmap : TGorillaTextureBitmap
- published IsDynamic : Boolean
Get or set if this texture comes from runtime / production content. This is used for depth, reflection and refraction textures, which will be generated by a separated render pass.
read FIsDynamic
write FIsDynamic - published IgnoreInArray : Boolean
If in TGorillaBitmapPool "DeclareAsArray" is set to TRUE, we can influence by this property if the texture will be included in the texture pool array.
read FIgnoreInArray
write FIgnoreInArray - published ShaderKind : TContextShaderKind
TGorillaBitmapPool
Defines a default collection pool for texture bitmaps. This component should be used in a TMaterialSource instance in combination with TGorillaTexturePool instance in the corresponding TMaterial.
Ancestors
Members
Fields
Methods
Properties
- published DeclareAsArray : Boolean
Textures will be declared in a texture array, excepting dynamic texture like depth, reflection, refraction, ...
read FDeclareAsArray
write FDeclareAsArray