元編程參考文件

紋理混合

5 個節點

本頁內容 5

算術

函數

Arithmetic between two textures, pixel by pixel.

簽名
算術 -> Texture
    甲: Texture
    乙: Texture
    運算: Texture Operation
Texture Arithmetic(
    Texture a,
    Texture b,
    TextureOperation operation = TextureOperation.Add)

參數

名稱型別預設值說明
甲Texture—The first operand.
乙Texture—The second operand.
運算Texture Operation加What to compute.

返回

結果Texture
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
紋理混合
所屬包
影像處理

與數值算術

函數

Arithmetic between a texture and a number, pixel by pixel.

簽名
與數值算術 -> Texture
    紋理: Texture
    值: 數字
    運算: Texture Operation
Texture ArithmeticWithValue(
    Texture texture,
    double value = 0.5,
    TextureOperation operation = TextureOperation.Multiply)

參數

名稱型別預設值說明
紋理Texture—The first operand.
值數字0.5The second operand.
運算Texture Operation乘What to compute.

返回

結果Texture
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
紋理混合
所屬包
影像處理

混合

函數

Lays the foreground over the background by a blend mode, as much as the opacity says and only where the mask is white. With no mask, everywhere.

簽名
混合 -> Texture
    前景: Texture
    背景: Texture
    模式: Blend Mode
    不透明度: 數字
    蒙版: Texture
Texture Blend(
    Texture foreground,
    Texture background,
    BlendMode mode = BlendMode.Normal,
    double opacity = 1,
    Texture mask)

參數

名稱型別預設值說明
前景Texture—What is laid on top.
背景Texture—What it is laid on; the result takes its size.
模式Blend Mode正常How the two combine.
不透明度數字1How much of the blend shows, 0 to 1.
蒙版Texture—Where it shows: white fully, black not at all. Optional.

返回

結果Texture
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
紋理混合
所屬包
影像處理

高度混合

函數

The higher of two heights at each pixel, with a soft seam: how stones sit in mortar, how two layers of rock meet. Also answers which one won, as a mask that is white where the second is on top.

簽名
高度混合 -> (結果: Texture, 蒙版: Texture)
    高度甲: Texture
    高度乙: Texture
    偏移: 數字
    對比度: 數字
Texture HeightBlend(
    Texture heightA,
    Texture heightB,
    out Texture mask,
    double offset = 0,
    double contrast = 0.9)

參數

名稱型別預設值說明
高度甲Texture—The first height.
高度乙Texture—The second height.
偏移數字0Raises the second height before comparing, -1 to 1.
對比度數字0.9How sharp the seam is, 0 (a broad mix) to 1 (a hard edge).

返回

結果Texture
蒙版Texture
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
紋理混合
所屬包
影像處理

按蒙版插值

函數

Mixes from the first texture to the second by the mask: black takes the first, white the second.

簽名
按蒙版插值 -> Texture
    第一個: Texture
    第二個: Texture
    蒙版: Texture
Texture Lerp(Texture first, Texture second, Texture mask)

參數

名稱型別預設值說明
第一個Texture—Where the mask is black.
第二個Texture—Where the mask is white.
蒙版Texture—The mix at each pixel.

返回

結果Texture
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
紋理混合
所屬包
影像處理