Header menu logo Mibo

PostProcess2D Module

Post-processing chain for 2D rendering.

Functions and values

Function or value Description

apply (ctx, sceneTarget, passes, rtPool)

Full Usage: apply (ctx, sceneTarget, passes, rtPool)

Parameters:

Applies a chain of post-processing passes via ping-pong render textures. The scene is already rendered to sceneTarget. Each pass renders to a pooled RT (except the last, which renders to the backbuffer).

ctx : GameContext
sceneTarget : RenderTexture2D
passes : PostProcessPass[]
rtPool : IRenderTargetPool

Type something to start searching.