PostProcess. PostProcessPlugin

UI System Global Object

Constructor

new PostProcessPlugin(shaderCode, includeMainCanvasopt, feedbackTextureopt)

Create global post processing shader

Parameters:
NameTypeAttributesDefaultDescription
shaderCodestring
includeMainCanvasboolean<optional>
false

combine mainCanvs onto glCanvas

feedbackTextureboolean<optional>
false

use glCanvas from previous frame as the texture

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

vao

Properties
TypeDescription
WebGLVertexArrayObject

Vertex array object