Table of Contents

Class PostGlowShader

Namespace
OmegaEngine.Graphics.Shaders
Assembly
OmegaEngine.dll

A post-screen shader that adds a bloom-like glow-effect around objects in the scene.

public class PostGlowShader : PostBlurShader, IDisposable
Inheritance
PostGlowShader
Implements
Inherited Members
Extension Methods

Constructors

PostGlowShader(TextureView)

Creates a new instance of the shader

public PostGlowShader(TextureView glowView)

Parameters

glowView TextureView

A render target storing the glow map of the current view

Exceptions

NotSupportedException

The graphics card does not support this shader.

Properties

GlowStrength

A factor by which the blurred glow color is multiplied - values between 0 and 100

public float GlowStrength { get; set; }

Property Value

float

MinShaderModel

The minimum shader model version required to use this shader

public static Version MinShaderModel { get; }

Property Value

Version

OverlayRendering

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

public override sealed bool OverlayRendering { get; }

Property Value

bool

Methods

OnEngineSet()

Hook that is called when Engine is set for the first time.

protected override void OnEngineSet()

RunPasses(Action, Size, RenderTarget)

Runs the actual shader passes

protected override 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

Should be null because a glow map is used instead