篩選節點Filter nodes

在著色器設計工具中,篩選節點會將色彩或材質範例等輸入轉換為象徵性的色彩值。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: float2UV: float2
要測試的材質座標。The coordinates of the texel to test.

輸出:Output:

Output: float4Output: 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: float3RGB: float3
要去色的色彩。The color to desaturate.

Percent: floatPercent: float
若要移除的色彩百分比,以 [0, 1] 範圍內的標準化數值表示。The percent of color to remove, expressed as a normalized value in the range [0, 1].

輸出:Output:

Output: float3Output: float3
已去色的色彩。The desaturated color.
明亮度Luminance
提供給紅色、綠色和藍色色彩元件的加權。The weights that are given to the red, green, and blue color components.
邊緣偵測Edge Detection 使用 Canny 邊緣偵測器偵測到材質中的邊緣。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: float2UV: float2
要測試的材質座標。The coordinates of the texel to test.

輸出:Output:

Output: float4Output: 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: float2UV: float2
要測試的材質座標。The coordinates of the texel to test.

輸出:Output:

Output: float4Output: float4
模糊效果的色彩值。The blurred color value.
紋理Texture
與銳利化期間使用之取樣器產生關聯的材質暫存器。The texture register that's associated with the sampler that's used during sharpening.