Gorilla.Controller.Passes.CustomBlur
Unit Gorilla.Controller.Passes.CustomBlur.pasClasses
- TBlurMaterial = class ( TGorillaRenderPassMaterial )
- TBlurMaterialSource = class ( TGorillaRenderPassMaterialSource )
- TGorillaRenderPassBlur = class ( TGorillaRenderPassController )
Enumerations
- enum TPassBlurType = ( RadialBlur, FastBlur, GaussianBlur ) ;
- enum TPassBlurMode = ( Horizontal, Vertical ) ;
Constants
TPassBlurType
enum TPassBlurType = (
RadialBlur, FastBlur, GaussianBlur
) ;
Different blurring algorithms. FastBlur produces unexpected artefacts on some NVIDIA GPUs.
TBlurMaterial
Ancestors
Members
Fields
- protected FBlurType :
TPassBlurType
- protected FBlurMode :
TPassBlurMode
- protected FFastBlurH :
TContextShader
- protected FFastBlurV :
TContextShader
- protected FGaussBlurH :
TContextShader
- protected FGaussBlurV :
TContextShader
- protected FBlurAmount :
Single
- protected FInputTexture :
TTexture
- protected FExposure :
Single
Methods
- public constructor Create ( const ASource : TBlurMaterialSource ) ;
- public destructor Destroy ( ) ;
- protected procedure SetBlurType ( const AValue : TPassBlurType ) ; virtual;
- protected procedure SetBlurAmount ( const AValue : Single ) ; virtual;
- protected function GetInputTexture ( const AContext : TContext3D ) : TTexture ; virtual;
- protected procedure DoApply ( const Context : TContext3D ) ; override;
- protected procedure DoInitialize ( ) ; override;
- protected procedure SetInputTexture ( const Value : TTexture ) ;
Properties
TBlurMaterialSource
Ancestors
Members
Fields
- protected FContextResetOvrId :
Integer
- protected FIteration :
Integer
- protected :
TGorillaRenderPassController
Methods
- public constructor Create ( AOwnerPass : TGorillaRenderPassController ) ;
- public destructor Destroy ( ) ;
- protected function CreateMaterial ( ) : TMaterial ; override;
- protected function GetBlurType ( ) : TPassBlurType ;
- protected procedure SetBlurType ( const AValue : TPassBlurType ) ;
- protected function GetExposure ( ) : Single ;
- protected procedure SetExposure ( const AValue : Single ) ;
- protected procedure DoPassesChanged ( Sender : TObject ) ; override;
- protected procedure ContextResetHandlerOverride ( const Sender : TObject; const Msg : TMessageBase ) ;
- protected procedure ( const AValue : TGorillaRenderPassController ) ; virtual;
Properties
TGorillaRenderPassBlur
Ancestors
Members
Fields
Methods
- public constructor Create ( AOwner : TComponent; const AId : string = Blur ) ;
- public destructor Destroy ( ) ;
- protected function GetBlurType ( ) : TPassBlurType ;
- protected procedure SetBlurType ( const AValue : TPassBlurType ) ;
- protected function GetBlurMode ( ) : TPassBlurMode ;
- protected procedure SetBlurMode ( AValue : TPassBlurMode ) ;
- protected function GetBlurAmount ( ) : Single ;
- protected procedure SetBlurAmount ( AValue : Single ) ;
- protected procedure SetIterations ( const AValue : Integer ) ; override;
- protected function GetExposure ( ) : Single ;
- protected procedure SetExposure ( const AValue : Single ) ;
- protected function CreateMaterialSource ( ) : TGorillaRenderPassMaterialSource ; override;
- protected procedure DoSetupTexturesByViewport ( const AContext : TContext3D; const AWidth : Integer; const AHeight : Integer ) ; override;
- protected procedure DoSetupTextures ( ) ; override;
- protected procedure DoOnBeginRenderPassSetup ( const ACount : Integer; const APass : TRenderPass ) ; override;
- protected procedure DoOnEndRenderPassSetup ( const ACount : Integer; const APass : TRenderPass ) ; override;
- protected procedure DoCreateRenderer ( ) ; override;
- protected procedure DoRendererApply ( ) ; override;
- protected procedure DoRendererResize ( ASize : TPoint; AScale : Single ) ; override;
- protected procedure DoRendererColor ( AColor : TAlphaColorF ) ; override;
- protected procedure SetRendererType ( const AValue : TRendererType ) ; override;
- public procedure AfterConstruction ( ) ; override;
- public function GetOutputTexture ( ) : TTexture ; override;
- public function GetFinalOutputTexture ( ) : TTexture ; virtual;