The opacity value to use when mixing the original and resultant colors.
When the value is 0, the original color is used without modification. When the value is 1, the result color is used. When in the range (0, 1) the color is interpolated between the original and result by this amount.
If enabled, PixiJS will fit the filter area into boundaries for better performance. Switch it off if it does not work for specific shader.
Sets the blendmode of the filter
If enabled is true the filter is applied, if false it will not.
Legacy filters use position and uvs from attributes
The matrix of the color matrix filter
The padding of the filter. Some filters require extra space to breath such as a blur. Increasing this will add extra width and height to the bounds of the object that the filter is applied to.
Program that the shader uses
The resolution of the filter. Setting this to be lower will lower the quality but increase the performance of the filter.
The WebGL state the filter requires to render
Shader uniform values, shortcut for uniformGroup.uniforms
The default fragment shader source
The default vertex shader source
Transforms current matrix and set the new one
5x4 matrix
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Applies the filter
The renderer to retrieve the filter from
The input render target.
The target to output to.
Should the output be cleared before rendering to it.
Set the black and white matrice.
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Adjusts brightness
value of the brigthness (0-1, where 0 is black)
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Brown delicious browni filter (thanks Dominic Szablewski)
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
We don't know exactly what it does, kind of gradient map, but funny to play with!
Tone values.
Tone values.
Tone values, example: 0xFFE580
Tone values, example: 0xFFE580
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Set the contrast matrix, increase the separation between dark and bright Increase contrast : shadows darker and highlights brighter Decrease contrast : bring the shadows up and the highlights down
value of the contrast (0-1)
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Desaturate image (remove color)
Call the saturate function
Set the matrices in grey scales
value of the grey (0-1, where 0 is black)
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Set the hue property of the color
in degrees
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Color reversal film introduced by Eastman Kodak in 1935. (thanks Dominic Szablewski)
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
LSD effect
Multiply the current matrix
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Negative image (inverse of classic rgb matrix)
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Night effect
The intensity of the night effect.
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Polaroid filter
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Predator effect
Erase the current matrix by setting a new indepent one
how much the predator feels his future victim
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Erase the current matrix by setting the default one
Set the saturation matrix, increase the separation between colors Increase saturation : increase contrast, brightness, and sharpness
The saturation amount (0-1)
Sepia image
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Color motion picture process invented in 1916 (thanks Dominic Szablewski)
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Filter who transforms : Red -> Blue and Blue -> Red
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
Vintage filter (thanks Dominic Szablewski)
if true, current matrix and matrix are multiplied. If false, just set the current matrix with @param matrix
A short hand function to create a shader based of a vertex and fragment shader
an shiny new Pixi shader!
Generated using TypeDoc
PIXI.Sprite