PostProcess. PostProcessPlugin

UI System Global Object

Constructor

new PostProcessPlugin(shaderCode, includeOverlayopt, includeMainCanvasopt)

Create global post processing shader

Parameters:
NameTypeAttributesDefaultDescription
shaderCodestring
includeOverlayboolean<optional>
false
includeMainCanvasboolean<optional>
true
Example
// create the post process plugin object
 new PostProcessPlugin(shaderCode);

Members

shader

Properties
TypeDescription
WebGLProgram

Shader for post processing

texture

Properties
TypeDescription
WebGLTexture

Texture for post processing