ZylemPostEffect
@zylem/game-lib / graphics / ZylemPostEffect
Type Alias: ZylemPostEffect
ZylemPostEffect = (
inputNode,ctx) =>any
Defined in: packages/game-lib/src/lib/camera/renderer-manager.ts:49
A postprocessing effect for the render pipeline. Receives the current
pipeline node (initially the scene pass) and returns the transformed node.
ctx.scenePass is the original scene PassNode for effects that need
extra channels (depth, velocity, ...). ctx.scene/ctx.camera are the
rendered scene and camera, for effects that build their own scene pass
(e.g. pixelation, retro). Such pass-replacing effects should be first in
the effect chain — the default scene pass simply goes unused.
Structurally compatible with ZylemPostEffect from @zylem/shaders.
Parameters
inputNode
any
ctx
camera
any
scene
any
scenePass
any
Returns
any