Gorilla.Material.PBR
Unit Gorilla.Material.PBR.pasClasses
- TGorillaPBRMaterial = class ( TGorillaPOMMaterial )
- TGorillaPBRMaterialSource = class ( TGorillaPOMMaterialSource )
TGorillaPBRMaterial
Ancestors
Members
Methods
- public constructor Create ( const ASource : TGorillaDefaultMaterialSource ) ;
- public destructor Destroy ( ) ;
- protected function GetUseParallaxOcclusion ( ) : Boolean ;
- protected procedure SetUseParallaxOcclusion ( AValue : Boolean ) ;
- protected procedure DoCreateVertexShader ( ) ; override;
- protected procedure DoCreateFragmentShader ( ) ; override;
- protected procedure DoApply ( const Context : TContext3D ) ; override;
Properties
- public UseParallaxOcclusion : Boolean
By default PBR materials using parallax occlusion mapping to produce a depth effect. By disabling "UseParallaxOcclusion" you can switch to regular normal mapping.
read GetUseParallaxOcclusion
write SetUseParallaxOcclusion
TGorillaPBRMaterialSource
Physically Based Rendering material source.
Ancestors
Members
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected procedure DoCreateDefaultBitmaps ( ) ; override;
- protected function CreateMaterial ( ) : TMaterial ; override;
- protected function GetMetalnessTexture ( ) : TBitmap ; virtual;
- protected procedure SetMetalnessTexture ( AValue : TBitmap ) ; virtual;
- protected function GetRoughnessTexture ( ) : TBitmap ; virtual;
- protected procedure SetRoughnessTexture ( AValue : TBitmap ) ; virtual;
- protected function GetAmbientOcclusionTexture ( ) : TBitmap ; virtual;
- protected procedure SetAmbientOcclusionTexture ( AValue : TBitmap ) ; virtual;
- protected function GetEmissiveTexture ( ) : TBitmap ;
- protected procedure SetEmissiveTexture ( AValue : TBitmap ) ;
- protected function GetSpecularMap ( ) : TBitmap ; virtual;
- protected procedure SetSpecularMap ( const AValue : TBitmap ) ; virtual;
- protected function GetUseParallaxOcclusion ( ) : Boolean ; virtual;
- protected procedure SetUseParallaxOcclusion ( AValue : Boolean ) ; virtual;
- protected function ( ) : TBitmap ; virtual;
- protected procedure ( const AValue : TBitmap ) ; virtual;
Properties
- published Texture : TBitmap
- published ShadingModel : TGorillaShadingModel
- published Diffuse : TAlphaColor
- published Emissive : TAlphaColor
- published Ambient : TAlphaColor
- published Specular : TAlphaColor
- published Shininess : Single
- published ClippingColor : TAlphaColor
- published NearLimit : Single
- published FarLimit : Single
- published Shadows : Boolean
- published ShadowMethod : TGorillaShadowMethod
- published DepthPass : TGorillaRenderPassController
- published Reflections : Boolean
- published ReflectionPass : TGorillaRenderPassController
- published ReflectionPower : Single
- published Refractions : Boolean
- published RefractionPass : TGorillaRenderPassController
- published RefractionPower : Single
- published Bitmaps : TGorillaBitmapPool
- published NormalMap : TBitmap
Get or set a normal map texture for POM effect. This is only a weak reference to the second entry in the texture pool (Bitmaps).
- published NormalIntensity : Single
- published MetalnessTexture : TBitmap
- published RoughnessTexture : TBitmap
- published AmbientOcclusionTexture : TBitmap
- published EmissiveTexture : TBitmap
- published SpecularMap : TBitmap
Get or set the specular map texture to manage specular color.
read GetSpecularMap
write SetSpecularMap - published ParallaxOcclusionMap : TBitmap
- published ParallaxLevels : Integer
- published UseParallaxOcclusion : Boolean
By default PBR materials using parallax occlusion mapping to produce a depth effect. By disabling "UseParallaxOcclusion" you can switch to regular normal mapping.
read GetUseParallaxOcclusion
write SetUseParallaxOcclusion - published UsePBRAlbedoTexture : Boolean
- published UsePBRMetallicTexture : Boolean
- published UsePBRRoughnessTexture : Boolean
- published UsePBRAOTexture : Boolean
- published UsePBREmissiveTexture : Boolean
- published UsePBRSpecularTexture : Boolean