ConvolutionFilter Class
The ConvolutionFilter class applies a matrix convolution filter effect. A convolution combines pixels in the input image with neighboring pixels to produce an image. A wide variety of image effects can be achieved through convolutions, including blurring, edge detection, sharpening, embossing, and beveling.
Constructor
ConvolutionFilter
(
-
texture
-
width
-
height
Parameters:
-
texture
ArrayAn array of values used for matrix transformation.
-
width
NumberWidth of the object you are transforming
-
height
NumberHeight of the object you are transforming
Methods
syncUniforms
()
Syncs the uniforms between the class object and the shaders.
Properties
dirty
Boolean
fragmentSrc
Array
private
padding
Number
passes
Array an array of filter objects
private
An array of passes - some filters contain a few steps this array simply stores the steps in a liniear fashion. For example the blur filter has two passes blurX and blurY.