Class PostShader
- Namespace
- OmegaEngine.Graphics.Shaders
- Assembly
- OmegaEngine.dll
A shader that is applied to the complete scene after rendering.
public abstract class PostShader : Shader, IDisposable
- Inheritance
-
PostShader
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Enabled
Shall this post-screen effect be applied?
public bool Enabled { get; set; }
Property Value
OverlayRendering
Does this post-screen shader use overlay rendering instead of a scene map?
public virtual bool OverlayRendering { get; }
Property Value
Methods
Apply(Action, Size, RenderTarget)
Applies a post-screen shader to a scene
public virtual void Apply(Action render, Size sceneSize, RenderTarget sceneMap)
Parameters
renderActionThe delegate to call back for rendering the output
sceneSizeSizeThe size of the scene on the screen - leave empty for fullscreen
sceneMapRenderTargetA texture containing the rendered scene,
nullif the shader doesn't need it
RunPasses(Action, Size, RenderTarget)
Runs the actual shader passes
protected virtual void RunPasses(Action render, Size sceneSize, RenderTarget sceneMap)
Parameters
renderActionThe render delegate (is called once for every shader pass)
sceneSizeSizeThe size of the scene on the screen - leave empty for fullscreen
sceneMapRenderTargetA texture containing the rendered scene,
nullif the shader doesn't need it