Class TGLSLScreenEffect
Unit
Declaration
type TGLSLScreenEffect = class(TGLSLProgram)
Description
Warning: this symbol is deprecated: this will be internal class soon, instead use TCastleScreenEffects or TCastleViewport and add screen effects there
GLSL shader program specialized for rendering screen effects. See https://castle-engine.io/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
- TObject
- TGLSLProgram
- TGLSLScreenEffect
Overview
Methods
constructor Create; |
|
procedure Link; override; |
Properties
property NeedsDepth: boolean read FNeedsDepth write FNeedsDepth default false; |
|
property UniformMissing default umIgnore; |
|
property ScreenEffectShader: string read FScreenEffectShader write FScreenEffectShader; |
Description
Methods
constructor Create; |
|
procedure Link; override; |
|
Properties
property NeedsDepth: boolean read FNeedsDepth write FNeedsDepth default false; |
|
property UniformMissing default umIgnore; |
|
In this class, |
property ScreenEffectShader: string read FScreenEffectShader write FScreenEffectShader; |
|
Attach GLSL code for the screen effect (executed as part of fragment shader). See https://castle-engine.io/x3d_extensions_screen_effects.php . |
Generated by PasDoc 0.16.0.