the current renderer instance
Optionaloptions: { matrix?: ColorMatrix } = {}effect options
Optionalmatrix?: ColorMatrixan initial color matrix. Defaults to identity.
Apply a brightness adjustment.
brightness multiplier (1.0 = normal, >1 brighter, <1 darker)
this instance for chaining
Apply a contrast adjustment.
contrast multiplier (1.0 = normal, >1 more contrast, <1 less)
this instance for chaining
destroy this shader effect
Apply a hue rotation.
rotation angle in radians
this instance for chaining
Apply a color inversion.
Optionalamount: number = 1.0inversion amount (0.0 = original, 1.0 = fully inverted)
this instance for chaining
Multiply the current matrix by another color matrix.
the matrix to multiply with
this instance for chaining
Reset the color matrix to identity (no color change).
this instance for chaining
Apply a saturation adjustment.
saturation level (0.0 = grayscale, 1.0 = normal, >1 over-saturated)
this instance for chaining
Apply a sepia tone.
Optionalamount: number = 1.0sepia intensity (0.0 = original, 1.0 = full sepia)
this instance for chaining
Set the uniform to the given value
the uniform name
the value to assign to that uniform
Multiplies the current matrix with a transform described by individual values. Accepts either 6 values (2D affine: a, b, c, d, e, f) or 16 values (full 4x4 column-major).
6 or 16 numeric values
this instance for chaining
A shader effect that applies a 4x4 color transformation matrix. Provides chainable color adjustment methods that automatically update the GPU uniform.
See
Renderable.shader for usage
Example
Example
Example