Table of Contents

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

bool

OverlayRendering

Does this post-screen shader use overlay rendering instead of a scene map?

public virtual bool OverlayRendering { get; }

Property Value

bool

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 Action

The delegate to call back for rendering the output

sceneSize Size

The size of the scene on the screen - leave empty for fullscreen

sceneMap RenderTarget

A 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 Action

The render delegate (is called once for every shader pass)

sceneSize Size

The size of the scene on the screen - leave empty for fullscreen

sceneMap RenderTarget

A texture containing the rendered scene, null if the shader doesn't need it

See Also