Constructor
new PostProcessPlugin(shaderCode, includeMainCanvasopt, feedbackTextureopt)
Create global post processing shader
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
shaderCode | string | |||
includeMainCanvas | boolean | <optional> | false | combine mainCanvs onto glCanvas |
feedbackTexture | boolean | <optional> | false | use glCanvas from previous frame as the texture |
- Source
Example
// create the post process plugin object
new PostProcessPlugin(shaderCode);Members
shader
Properties| Type | Description |
|---|---|
| WebGLProgram | Shader for post processing |
- Source
texture
Properties| Type | Description |
|---|---|
| WebGLTexture | Texture for post processing |
- Source
vao
Properties| Type | Description |
|---|---|
| WebGLVertexArrayObject | Vertex array object |
- Source