Class: Filter

PhotoEditorSDK.Engine. Filter

A filter can be attached to a DisplayObject and affects the way it is displayed.

new PhotoEditorSDK.Engine.Filter()

sdk/engine/filters/filter.js, line 27



apply(renderer, inputTarget, outputTarget, clear)

sdk/engine/filters/filter.js, line 198

Applies this filter to the given inputTarget and renders it to the given outputTarget

Name Type Default Description
renderer PhotoEditorSDK.Engine.BaseRenderer
inputTarget PhotoEditorSDK.Engine.RenderTarget
outputTarget PhotoEditorSDK.Engine.RenderTarget
clear Boolean false

= false


sdk/engine/filters/filter.js, line 260

Disposes this Filter


sdk/engine/filters/filter.js, line 172

Returns the shader for the given renderer

Name Type Description
renderer PhotoEditorSDK.Engine.WebGLRenderer
Type Description

setUniform(name, value, sync)

sdk/engine/filters/filter.js, line 126

Sets the given uniform to the given value

Name Type Default Description
name String
value *
sync Boolean false

= false

setUniforms(uniforms, sync)

sdk/engine/filters/filter.js, line 136

Sets the given uniforms to their values

Name Type Default Description
uniforms Object
sync Boolean false

= false


sdk/engine/filters/filter.js, line 150

Synchronizes the uniform with the given name

Name Type Description
name String


sdk/engine/filters/filter.js, line 160

Synchronizes all uniforms with WebGL