Class TGLGeneratedShadowMap

Unit

Declaration

type TGLGeneratedShadowMap = class(TGL2DTextureNode)

Description

No description available, ancestor TGL2DTextureNode description follows

Handler for 2D textures that have a corresponding OpenGL resource.

Hierarchy

Overview

Fields

Public Size: Cardinal;
Public VisualizeDepthMap: boolean;

Methods

Protected class function IsClassForTextureNode(ANode: TAbstractTextureNode): boolean; override;
Protected procedure PrepareCore(State: TX3DGraphTraverseState); override;
Public function TextureNode: TGeneratedShadowMapNode;
Public procedure Unprepare; override;
Public function Bind(const TextureUnit: Cardinal): boolean; override;
Public function Enable(const TextureUnit: Cardinal; Shader: TShader; const Env: TTextureEnv): boolean; override;
Public function GLName: TGLTextureId; override;
Public procedure Update( const Render: TRenderFromViewFunction; const ProjectionNear, ProjectionFar: Single; var NeedsRestoreViewport: boolean; Light: TAbstractLightNode);
Public class function ClassVarianceShadowMaps(Attributes: TRenderingAttributes): boolean;

Description

Fields

Public Size: Cardinal;

The right size of the texture, that satisfies all OpenGL sizes requirements.

Public VisualizeDepthMap: boolean;

Do we visualize depth map, because of Attributes.VisualizeDepthMap or compareMode = NONE.

Methods

Protected class function IsClassForTextureNode(ANode: TAbstractTextureNode): boolean; override;
 
Protected procedure PrepareCore(State: TX3DGraphTraverseState); override;
 
Public function TextureNode: TGeneratedShadowMapNode;
 
Public procedure Unprepare; override;
 
Public function Bind(const TextureUnit: Cardinal): boolean; override;
 
Public function Enable(const TextureUnit: Cardinal; Shader: TShader; const Env: TTextureEnv): boolean; override;
 
Public function GLName: TGLTextureId; override;
 
Public procedure Update( const Render: TRenderFromViewFunction; const ProjectionNear, ProjectionFar: Single; var NeedsRestoreViewport: boolean; Light: TAbstractLightNode);
 
Public class function ClassVarianceShadowMaps(Attributes: TRenderingAttributes): boolean;

Check would we use Variance Shadow Maps with current ARenderer attributes and OpenGL version/extensions.


Generated by PasDoc 0.15.0.