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.

Constructors

Properties

The graphics device of the application.

needsDepthBuffer: boolean

The property that should to be set to true (by the custom post effect) if a depth map is necessary (default is false).

quadVertexShader: string = ...

A simple vertex shader used to render a quad, which requires 'vec2 aPosition' in the vertex buffer, and generates uv coordinates vUv0 for use in the fragment shader.

Methods