Gorilla.Controller.Passes.Reflection
Unit Gorilla.Controller.Passes.Reflection.pasClasses
- TGorillaRenderPassReflection = class ( TGorillaRenderPassController )
TGorillaRenderPassReflection
Ancestors
Members
Fields
- protected FPassCamera :
TGorillaCamera
- protected FOrigCamera :
TCamera
- protected FAngleOfView :
Single
- protected FMirrorPosition :
TPoint3D
- protected FMirrorNormal :
TPoint3D
- protected FMirrorSize :
Single
Methods
- public constructor Create ( AOwner : TComponent; const AId : string = Reflection ) ;
- public destructor Destroy ( ) ;
- protected function CreateMaterialSource ( ) : TGorillaRenderPassMaterialSource ; override;
- protected function GetCamera ( ) : TCamera ;
- protected procedure SetCamera ( AValue : TCamera ) ;
- protected procedure DoSetupTexturesByViewport ( const AContext : TContext3D; const AWidth : Integer; const AHeight : Integer ) ; override;
- protected procedure DoOnBeginRenderPassSetup ( const ACount : Integer; const APass : TRenderPass ) ; override;
- protected procedure DoOnEndRenderPassSetup ( const ACount : Integer; const APass : TRenderPass ) ; override;
- protected function CalcMirrorMatrix ( const AContext : TContext3D; const AEyePos : TPoint3D; const AEyeDir : TPoint3D; const AMirrorPos : TPoint3D; const AMirrorNormal : TPoint3D; const AMirrorSize : Single; out AProjMat : TMatrix3D; out AViewMat : TMatrix3D; out AReflectedPos : TPoint3D ) : Boolean ;
- protected procedure DefineProperties ( Filer : TFiler ) ; override;
- protected procedure ReadMirrorPosition ( Reader : TReader ) ;
- protected procedure WriteMirrorPosition ( Writer : TWriter ) ;
- protected procedure ReadMirrorNormal ( Reader : TReader ) ;
- protected procedure WriteMirrorNormal ( Writer : TWriter ) ;
- public procedure AfterConstruction ( ) ; override;
- public function GetCurrentModelViewProjectionMatrix ( ) : TMatrix3D ; override;
- public function GetProjectionMatrix ( const AContext : TContext3D ) : TMatrix3D ; overload override;
- public function GetViewMatrix ( const AContext : TContext3D ) : TMatrix3D ; overload override;
- public procedure SetupMatrices ( const AContext : TContext3D ) ; virtual;
- public function GetTextureMatrix ( AContext : TContext3D; const AUseBias : Boolean = False ) : TMatrix3D ; override;
- public function GetOutputTexture ( ) : TTexture ; override;
Properties
- published Camera : TCamera
- published MirrorPosition : TPoint3D
Get or set position of mirror surface. This value is stored as "MirrorPositionPoint" in DFM.
read FMirrorPosition
write FMirrorPosition - published MirrorNormal : TPoint3D
Get or set normal vector of mirror surface. The normal vector is the direction of the computed reflection. This value is stored as "MirrorNormalVector" in DFM.
read FMirrorNormal
write FMirrorNormal - published MirrorSize : Single