Class TGLSLScreenEffect
Unit
CastleScreenEffects
Declaration
type TGLSLScreenEffect = class(TGLSLProgram)
Description
GLSL shader program specialized for rendering screen effects. See http://castle-engine.sourceforge.net/x3d_extensions_screen_effects.php about screen effects.
Do not use the ancestor AttachVertexShader and AttachFragmentShader methods, instead set the ScreenEffectShader. This way, the standard GLSL functionality of screen effects will be attached to the vertex and fragment shader code automatically. At link time, this looks at current OpenGL context multi-sampling capabilities, and the NeedsDepth value, to link the correct shader code.
Hierarchy
Overview
Methods
Properties
Description
Methods
 |
constructor Create; |
|
 |
procedure Link; override; |
|
Properties
 |
property NeedsDepth: boolean read FNeedsDepth write FNeedsDepth default false; |
|
 |
property UniformNotFoundAction default uaIgnore; |
In this class, UniformNotFoundAction is by default uaIgnore, since it's normal that screen effect doesn't use some of it's uniform variables.
|
Generated by PasDoc 0.15.0.
|