Common Attributes (Filters)
Intro
The following attributes are used on several Filters.
UI
- Filter
- Mattes
Blend Mode - Set the blend mode for the Filter. Note that, where multiple Filters are connected to a Shape, this blend mode affects how Filters blend with each other and not how Shapes blend with other Shapes in the Viewport — use the Blend Mode under a Shape's Shape tab to affect that.
Opacity - Reduce/increase the effect of the Filter.
Sample/Greyscale/Sort Mode - Determine how the Shader is sampled:
- Luma (Gamma Corrected) - Sample the gamma corrected average brightness values.
- Average - Sample the average brightness values. This is a fast calculation.
- Saturation - Sample the saturation values.
- Value - Use the brightest of the R, G or B values and apply its value to the lower two. For example, if the red channel has a value of 0.8 and that value is higher than the blue and green channels, then set the blue and green to 0.8 too.
- Red Channel - Sample the values held in the red channel.
- Blue Channel - Sample the values held in the blue channel.
- Green Channel - Sample the values held in the green channel.
Mattes - A list of Shapes used as mattes for the Filter.
Settings for each matte can be accessed via the icon on the matte's row.
- Matte Shape - The input connection from the Shape.
- Enabled - Enable/disable the matte.
- Mode - Determine how the Shape's luminance or alpha is used:
- Luminance - Use the luminance of the Shape where white pixels will remove the filter entirely and black pixels will have no effect.
- Luminance Inverted - The inverse of the above.
- Alpha - Use the opacity of the Shape where opaque pixels will remove the filter entirely and transparent pixels will have no effect.
- Alpha Inverted - The inverse of the above.
- Blend Mode - Choose a Blend Mode for the matte.
- Opacity - Reducing this value will reduce the effect of the matte.
- Feather - Soften the edges of a matte.
Tile Mode - Determine what happens at the borders of the matte:
- Clamp - Use the first and last values of the image.
- Repeat - Repeat/loop the image.
- Decal - Cut out the image.
Apply Mode - Determine how the matte affects the Filter's result:
- Filter Input - All pixels are filtered and then the result is clipped by the matte(s). This results in a sharp edge at the borders of the matte (unless a Feather is added).
- Clip Output - Only the pixels inside the matte(s) are filtered. In the case of a Blur, this will create a softer edge. This can be more performant than 'Filter Input' as only the pixels inside the matte(s) are filtered.