Filter nodes

Applies to: yesVisual Studio noVisual Studio for Mac

In the Shader Designer, filter nodes transform an input—for example, a color or texture sample—into a figurative color value. These figurative color values are commonly used in non-photorealistic rendering or as components in other visual effects.

Filter node reference

Node Details Properties
Blur Blurs pixels in a texture by using a Gaussian function.

You can use this to reduce color detail or noise in a texture.

Input:

UV: float2
The coordinates of the texel to test.

Output:

Output: float4
The blurred color value.
Texture
The texture register that's associated with the sampler that's used during blurring.
Desaturate Reduces the amount of color in the specified color.

As color is removed, the color value approaches its gray-scale equivalent.

Input:

RGB: float3
The color to desaturate.

Percent: float
The percent of color to remove, expressed as a normalized value in the range [0, 1].

Output:

Output: float3
The desaturated color.
Luminance
The weights that are given to the red, green, and blue color components.
Edge Detection Detects edges in a texture by using a Canny edge detector. Edge pixels are output as white; non-edge pixels are output as black.

You can use this to identify edges in a texture so that you can use additional effects to treat edge pixels.

Input:

UV: float2
The coordinates of the texel to test.

Output:

Output: float4
White if the texel is on an edge; otherwise, black.
Texture
The texture register that's associated with the sampler that's used during edge detection.
Sharpen Sharpens a texture.

You can use this to highlight fine details in a texture.

Input:

UV: float2
The coordinates of the texel to test.

Output:

Output: float4
The blurred color value.
Texture
The texture register that's associated with the sampler that's used during sharpening.