Ctrl+K

PostProcessEffect

Declaration

public class Strawberry.Graphics.PostProcessEffect

Represents a single post-processing effect with its own render target and shader.

Constructors

PostProcessEffect

Creates a new post-processing effect with the specified shader and texture parameter name.

void PostProcessEffect(Shader shader, string textureParameterName)

Parameters:

Name Type Description
shader Strawberry.Graphics.Shader The shader to use for this effect.
textureParameterName System.String The texture parameter name in the shader that will be set to this effect's render target.

Properties

RenderTarget

Gets the render target of this post-processing effect.

RenderTarget RenderTarget { get }

GraphicsContext

Gets the graphics context that created and manages this post-processing effect.

IGraphicsContext GraphicsContext { get set }

Shader

Gets the shader of this post-processing effect.

Shader Shader { get set }

TextureParameterName

The name of the texture parameter in the shader that will be set to this effect's render target.

string TextureParameterName { get }

Methods

Activate

Activates this effect's render target for rendering.

void Activate()