元編程參考文件

紋理通道

10 個節點

本頁內容 10

顏色變化

函數

Varies a colour texture's hue, saturation and value by a greyscale map, centred on middle grey: grey leaves the colour alone, white and black push it opposite ways. Per-brick or per-plank colour variation from a random-per-cell map.

簽名
顏色變化 -> Texture
    顏色: Texture
    變化: Texture
    色相範圍: 數字
    飽和度範圍: 數字
    明度範圍: 數字
Texture ColorVariation(
    Texture color,
    Texture variation,
    double hueRange = 0.03,
    double saturationRange = 0.15,
    double valueRange = 0.15)

參數

名稱型別預設值說明
顏色Texture—The colour texture.
變化Texture—The map driving the variation; middle grey changes nothing.
色相範圍數字0.03The largest hue shift, as a share of the wheel.
飽和度範圍數字0.15The largest saturation change.
明度範圍數字0.15The largest lightness change.

返回

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

漸層對映

函數

A greyscale texture coloured through a gradient: each value picks the ramp's colour at that position. How a height becomes a believable base colour.

簽名
漸層對映(灰度: Texture, 漸層: Color Ramp) -> Texture
Texture GradientMap(Texture greyscale, ColorRamp gradient)

參數

名稱型別預設值說明
灰度Texture—The values, 0 to 1.
漸層Color Ramp—The colours along 0 to 1.

返回

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

多段漸層對映

函數

A greyscale texture coloured through a gradient written as text: each stop a position and a colour, separated by semicolons - 0 #2B1A12; 0.5 #8A4B2F; 1 #D9A273. The same stops a Color Ramp takes.

簽名
多段漸層對映(灰度: Texture, 色標: 文字) -> Texture
Texture GradientMapStops(
    Texture greyscale,
    string stops = "0 #000000; 1 #FFFFFF")

參數

名稱型別預設值說明
灰度Texture—The values, 0 to 1.
色標文字0 #000000; 1 #FFFFFFThe gradient's stops, a position and a colour each.

返回

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

三色漸層對映

函數

A greyscale texture coloured between three colours: black, middle grey and white take the dark, middle and light ones.

簽名
三色漸層對映 -> Texture
    灰度: Texture
    暗色: 顏色
    中間色: 顏色
    亮色: 顏色
Texture GradientMapThreeColors(
    Texture greyscale,
    ColorElement dark,
    ColorElement middle,
    ColorElement light)

參數

名稱型別預設值說明
灰度Texture—The values, 0 to 1.
暗色顏色—The colour of 0.
中間色顏色—The colour of 0.5.
亮色顏色—The colour of 1.

返回

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

雙色漸層對映

函數

A greyscale texture coloured between two colours: black takes the dark one, white the light one.

簽名
雙色漸層對映(灰度: Texture, 暗色: 顏色, 亮色: 顏色) -> Texture
Texture GradientMapTwoColors(
    Texture greyscale,
    ColorElement dark,
    ColorElement light)

參數

名稱型別預設值說明
灰度Texture—The values, 0 to 1.
暗色顏色—The colour of 0.
亮色顏色—The colour of 1.

返回

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

灰度

函數

A colour texture's brightness as greyscale: its luminance.

簽名
灰度(顏色: Texture) -> Texture
Texture Greyscale(Texture color)

參數

名稱型別預設值說明
顏色Texture—The texture.

返回

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

色相飽和度明度

函數

Shifts the hue and scales the saturation and lightness of a colour texture, computed in the encoded colour a person sees so the sliders behave as a paint program's do.

簽名
色相飽和度明度 -> Texture
    顏色: Texture
    色相偏移: 數字
    飽和度: 數字
    明度: 數字
Texture HueSaturationLightness(
    Texture color,
    double hueShift = 0,
    double saturation = 1,
    double lightness = 0)

參數

名稱型別預設值說明
顏色Texture—The colour texture.
色相偏移數字0Turns every hue by this share of the colour wheel, -0.5 to 0.5.
飽和度數字1Multiplies saturation: 0 is grey, 1 unchanged.
明度數字0Added to lightness, -1 to 1.

返回

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

合併通道

函數

Four greyscale textures as one colour texture's channels. Alpha is 1 where none is given. Merged as data, values unchanged, which is how packed maps (occlusion, roughness, metallic) are built.

簽名
合併通道 -> Texture
    紅: Texture
    綠: Texture
    藍: Texture
    透明度: Texture
    作為顏色: 真否
Texture Merge(
    Texture red,
    Texture green,
    Texture blue,
    Texture alpha,
    bool asColor = false)

參數

名稱型別預設值說明
紅Texture—The red channel.
綠Texture—The green channel.
藍Texture—The blue channel.
透明度Texture—The alpha channel; optional.
作為顏色真否FalseWhether the channels are colour in linear light rather than data.

返回

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

拆分通道

函數

A colour texture's four channels as four greyscale textures.

簽名
拆分通道(顏色: Texture) -> (結果: Texture, 綠: Texture, 藍: Texture, 透明度: Texture)
Texture Split(
    Texture color,
    out Texture green,
    out Texture blue,
    out Texture alpha)

參數

名稱型別預設值說明
顏色Texture—The colour texture.

返回

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

著色

函數

Multiplies a texture by a colour: tints white to that colour and darkens everything else toward it.

簽名
著色(紋理: Texture, 顏色: 顏色) -> Texture
Texture Tint(Texture texture, ColorElement color)

參數

名稱型別預設值說明
紋理Texture—The texture; greyscale becomes colour.
顏色顏色—The tint.

返回

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