Gorilla.Controller.Passes.Reflection
Unit Gorilla.Controller.Passes.Reflection.pasClasses
- TGorillaRenderPassReflection = class ( TGorillaRenderPassController )
TGorillaRenderPassReflection
Ancestors
Members
Fields
- protected FCamera :
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 DoOnRenderPass ( const AContext : TContext3D; const ACount : Integer; const AState : TRenderPassEventState; 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 ) : Boolean ;
- protected function GetProjectionMatrix ( const AContext : TContext3D ) : TMatrix3D ; override;
- protected function GetViewMatrix ( const AContext : TContext3D ) : TMatrix3D ; override;
- public function GetCurrentModelViewProjectionMatrix ( const AContext : TContext3D ) : TMatrix3D ; override;
- public procedure SetupMatrices ( const AContext : TContext3D ) ; virtual;
- public function GetTextureMatrix ( AContext : TContext3D; const AUseBias : Boolean = False ) : TMatrix3D ; override;
Properties
- published Camera : TCamera
- published MirrorPosition : TPoint3D
- published MirrorNormal : TPoint3D
Get or set normal vector of mirror surface. The normal vector is the direction of the computed reflection.
read FMirrorNormal
write FMirrorNormal - published MirrorSize : Single