Class: PostEffect

pc.PostEffect

Base class for all post effects. Post effects take a a render target as input apply effects to it and then render the result to an output render target or the screen if no output is specified.

Constructor

new PostEffect(graphicsDevice)

Creates new PostEffect
Parameters:
Name Type Description
graphicsDevice pc.GraphicsDevice The graphics device of the application
Source:

Methods

render(inputTarget, outputTarget, rect)

Render the post effect using the specified inputTarget to the specified outputTarget.
Parameters:
Name Type Description
inputTarget pc.RenderTarget The input render target
outputTarget pc.RenderTarget The output render target. If null then this will be the screen.
rect pc.Vec4 (Optional) The rect of the current camera. If not specified then it will default to [0,0,1,1]
Source: