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: