PostProcess2D Module
Post-processing chain for 2D rendering.
Functions and values
| Function or value |
Description
|
Full Usage:
apply (ctx, sceneTarget, passes, rtPool, spriteBatch)
Parameters:
GameContext
sceneTarget : RenderTarget2D
passes : PostProcessPass[]
rtPool : IRenderTargetPool
spriteBatch : SpriteBatch
|
Applies a chain of post-processing passes via ping-pong render targets. The scene is already rendered to sceneTarget. Each pass renders to a pooled RT (except the last, which renders to the backbuffer).
|
Mibo