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
render
ActionThe delegate to call back for rendering the output
sceneSize
SizeThe size of the scene on the screen - leave empty for fullscreen
sceneMap
RenderTargetA texture containing the rendered scene,
null
if 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
render
ActionThe render delegate (is called once for every shader pass)
sceneSize
SizeThe size of the scene on the screen - leave empty for fullscreen
sceneMap
RenderTargetA texture containing the rendered scene,
null
if the shader doesn't need it