Property | Type | Description | |
---|---|---|---|
ColorMatrix |
Method | Description | |
---|---|---|
AdjustBrightness ( float brightness ) : void |
Changes the brightness. Typical values are in the range(-1, 1). Values above zero will make the image brighter, values below zero will make it darker.
|
|
AdjustContrast ( float contrast ) : void |
Changes the contrast. Typical values are in the range(-1, 1). Values above zero will raise, values below zero will reduce the contrast.
|
|
AdjustHue ( float hue ) : void |
Changes the hue of the image. Typical values are in the range(-1, 1).
|
|
AdjustSaturation ( float saturation ) : void |
Changes the saturation. Typical values are in the range(-1, 1). Values above zero will raise, values below zero will reduce the saturation. '-1' will produce a grayscale image.
|
|
ColorMatrixFilter ( |
||
ConcatColorMatrix ( |
Concatenates the current matrix with another one.
|
|
Invert ( ) : void |
Inverts the colors of the filtered objects.
|
|
Reset ( ) : void |
Changes the filter matrix back to the identity matrix.
|
Method | Description | |
---|---|---|
ActivateWithPass ( int pass, Sparrow texture, Sparrow mvpMatrix ) : void | ||
CreatePrograms ( ) : void |
Method | Description | |
---|---|---|
GetFragmentShader ( ) : string | ||
UpdateShaderMatrix ( ) : void |
protected ActivateWithPass ( int pass, Sparrow texture, Sparrow mvpMatrix ) : void | ||
pass | int | |
texture | Sparrow | |
mvpMatrix | Sparrow | |
return | void |
public AdjustBrightness ( float brightness ) : void | ||
brightness | float | |
return | void |
public AdjustContrast ( float contrast ) : void | ||
contrast | float | |
return | void |
public AdjustSaturation ( float saturation ) : void | ||
saturation | float | |
return | void |
public ColorMatrixFilter ( |
||
matrix | ||
return | Sparrow.Core |
public ConcatColorMatrix ( |
||
colorMatrix | ||
return | void |