Table of Contents

Interface IPostProcess

Namespace
Gamelogic.Fx.BuiltIn.PostProcessing
Assembly
Gamelogic.Fx.BuiltIn.dll

⭐ Interface for post process effects.

public interface IPostProcess

Remarks

Intended for the built-in render pipeline.

Any class that implements this interface can be used as a post process with PostProcessRunner.

Usually PostProcess is a suitable base class for custom post effects, but in cases you want to have the implementation complete, you can use this interface.

Properties

enabled

Whether the post process is enabled.

bool enabled { get; }

Property Value

bool

Remarks

The PostProcessRunner ignores it if disabled.

Methods

OnRenderImage(RenderTexture, RenderTexture)

The function that performs the post process effect.

void OnRenderImage(RenderTexture sourceTexture, RenderTexture destTexture)

Parameters

sourceTexture RenderTexture

The full screen source texture.

destTexture RenderTexture

The render target for the post process.

Remarks

A typical implementation uses UnityEngine.Graphics.Blit(UnityEngine.Texture, UnityEngine.RenderTexture, UnityEngine.Material) to perform the post-process effect.