Gorilla.Controller.Passes.Face
Unit Gorilla.Controller.Passes.Face.pasClasses
- TFaceMaterial = class ( TGorillaRenderPassMaterial )
- TFaceMaterialSource = class ( TGorillaRenderPassMaterialSource )
- TGorillaRenderPassFace = class ( TGorillaRenderPassController )
Enumerations
- enum TFaceKind = ( FrontFace, BackFace ) ;
Constants
TFaceMaterial
TFaceMaterialSource
Ancestors
Members
Methods
- public constructor Create ( AOwnerPass : TGorillaRenderPassController ) ;
- public destructor Destroy ( ) ;
- protected function CreateMaterial ( ) : TMaterial ; override;
- protected procedure DoPassesChanged ( Sender : TObject ) ; override;
- protected function GetFaceKind ( ) : TFaceKind ;
- protected procedure SetFaceKind ( const AValue : TFaceKind ) ;
Properties
TGorillaRenderPassFace
The face render pass controller renders vertex positions to texture depending on the set facekind. If TFaceKind.FrontFace it will only render front face vertices, if TFaceKind.BackFace is set, it will only render back face vertices. It stores the vertex position as composite texture in RGB16F format.
Remarks
The shader ignores any colors or shading, it will only care about vertex positions.
Use this render pass controller for TGorillaVolumetricMesh rendering, to retrieve the start and end positions of ray casting.
Ancestors
Members
Methods
- public constructor Create ( AOwner : TComponent; const AId : string = Face ) ;
- public destructor Destroy ( ) ;
- protected function GetFaceKind ( ) : TFaceKind ;
- protected procedure SetFaceKind ( const AValue : TFaceKind ) ;
- protected function CreateMaterialSource ( ) : TGorillaRenderPassMaterialSource ; override;
- protected procedure DoCreateRenderer ( ) ; override;
- protected procedure DoOnCreateCompositeTexture ( ASender : TObject; const ASize : TPoint; const AScale : Single; out ATexture : TGorillaTextureBitmap ) ; override;
- protected procedure DoOnBeginRenderPassSetup ( const ACount : Integer; const APass : TRenderPass ) ; override;
- protected procedure DoOnEndRenderPassSetup ( const ACount : Integer; const APass : TRenderPass ) ; override;
- protected procedure DoSetupTexturesByViewport ( const AContext : TContext3D; const AWidth : Integer; const AHeight : Integer ) ; override;
- public procedure AfterConstruction ( ) ; override;
- public function GetViewMatrix ( const AContext : TContext3D ) : TMatrix3D ; overload override;
- public function GetProjectionMatrix ( const AContext : TContext3D ) : TMatrix3D ; overload override;
- public procedure SetupMatrices ( const AContext : TContext3D ) ; virtual;
- public function GetTextureMatrix ( AContext : TContext3D; const AUseBias : Boolean = True ) : TMatrix3D ; override;
Properties
- public BiasMatrix : TMatrix3D
- published FaceKind : TFaceKind
Get or set the clipping of front or back vertices. This allows to render different vertices from perspective.
read GetFaceKind
write SetFaceKind