元編程參考文件

紋理調整

13 個節點

本頁內容 13

自動色階

函數

Stretches the values so the darkest becomes 0 and the brightest 1.

簽名
自動色階(紋理: Texture) -> Texture
Texture AutoLevels(Texture texture)

參數

名稱型別預設值說明
紋理Texture—The texture.

返回

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

鉗制

函數

Holds every value between a minimum and a maximum.

簽名
鉗制(紋理: Texture, 最小值: 數字, 最大值: 數字) -> Texture
Texture Clamp(
    Texture texture,
    double minimum = 0,
    double maximum = 1)

參數

名稱型別預設值說明
紋理Texture—The texture.
最小值數字0The lowest value let through.
最大值數字1The highest value let through.

返回

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

對比度與亮度

函數

Pushes values away from (contrast above 0) or toward (below 0) the middle grey, and shifts them all up or down.

簽名
對比度與亮度(紋理: Texture, 對比度: 數字, 亮度: 數字) -> Texture
Texture ContrastBrightness(
    Texture texture,
    double contrast = 0.25,
    double brightness = 0)

參數

名稱型別預設值說明
紋理Texture—The texture.
對比度數字0.25-1 flattens to grey, 0 leaves alone, 1 doubles the spread.
亮度數字0Added to every value.

返回

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

曲線

函數

Remaps values through a curve given as heights at evenly spaced points from 0 to 1, passed through smoothly: [0, 1] is no change, [0, 0.2, 1] darkens the middle, [1, 0] inverts.

簽名
曲線(紋理: Texture, 控制點: 數字陣列) -> Texture
Texture Curve(Texture texture, double[] points)

參數

名稱型別預設值說明
紋理Texture—The texture.
控制點數字陣列—The curve's height at evenly spaced inputs from 0 to 1; at least two.

返回

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

去除光照

函數

Takes the light a photograph was taken in out of its colour: the broad brightening and darkening that a sun, a sky or a flash laid across the surface, found as the photograph's brightness smoothed wider than any of its own detail and divided out, keeping each place's hue. What is left is the surface's own colour, which a material needs so its renderer can light it afresh.

簽名
去除光照 -> Texture
    紋理: Texture
    尺度: 數字
    強度: 數字
    已可平鋪: 真否
Texture Delight(
    Texture texture,
    double scale = 128,
    double strength = 1,
    bool tiles = false)

參數

名稱型別預設值說明
紋理Texture—The photograph.
尺度數字128How broad a change counts as light rather than the surface's own pattern, in pixels of a 1024-pixel texture: larger keeps more of the surface's own large variation.
強度數字1How much of the light to take out, 0 to 1.
已可平鋪真否FalseWhether the photograph already tiles, as a scan made for it does: then the light is measured across its edges as if it repeated, so the result still tiles. A plain photograph's light does not repeat, so it is measured up to its edges.

返回

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

直方圖範圍

函數

Squeezes the values toward a middle: range 1 leaves them, range 0 makes everything the position's value. For calming a busy texture before it is mixed in.

簽名
直方圖範圍(紋理: Texture, 範圍: 數字, 位置: 數字) -> Texture
Texture HistogramRange(
    Texture texture,
    double range = 0.5,
    double position = 0.5)

參數

名稱型別預設值說明
紋理Texture—The texture.
範圍數字0.5How much of the spread is kept, 0 to 1.
位置數字0.5Where the values gather, 0 to 1.

返回

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

直方圖掃描

函數

Turns a gradient into a mask with an edge you can place and soften: everything above the position becomes white, everything below black, over a transition as wide as the contrast leaves it. Sliding the position grows or shrinks the mask - the tool for eroding, wearing and spreading.

簽名
直方圖掃描(紋理: Texture, 位置: 數字, 對比度: 數字) -> Texture
Texture HistogramScan(
    Texture texture,
    double position = 0.5,
    double contrast = 0.5)

參數

名稱型別預設值說明
紋理Texture—The texture.
位置數字0.5Where the edge is, 0 to 1; higher keeps less white.
對比度數字0.5How sharp the edge is, 0 (the gradient untouched) to 1 (a hard threshold).

返回

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

直方圖選擇

函數

Selects a band of values: white where the value is near the position, falling to black outside the range, softened by contrast. For picking out one level of a height, such as the tops of bricks.

簽名
直方圖選擇 -> Texture
    紋理: Texture
    位置: 數字
    範圍: 數字
    對比度: 數字
Texture HistogramSelect(
    Texture texture,
    double position = 0.5,
    double range = 0.25,
    double contrast = 0.5)

參數

名稱型別預設值說明
紋理Texture—The texture.
位置數字0.5The value selected, 0 to 1.
範圍數字0.25How wide the selected band is.
對比度數字0.5How hard the band's edges are.

返回

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

反相

函數

One minus each value: black becomes white.

簽名
反相(紋理: Texture) -> Texture
Texture Invert(Texture texture)

參數

名稱型別預設值說明
紋理Texture—The texture.

返回

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

色階

函數

Remaps values: what was at the input low becomes the output low, the input high the output high, with gamma bending the middle. The single most used node in procedural texturing.

簽名
色階 -> Texture
    紋理: Texture
    輸入下限: 數字
    輸入上限: 數字
    伽馬: 數字
    輸出下限: 數字
    輸出上限: 數字
    鉗制: 真否
Texture Levels(
    Texture texture,
    double inputLow = 0,
    double inputHigh = 1,
    double gamma = 1,
    double outputLow = 0,
    double outputHigh = 1,
    bool clamp = true)

參數

名稱型別預設值說明
紋理Texture—The texture.
輸入下限數字0The value that becomes the output low.
輸入上限數字1The value that becomes the output high.
伽馬數字1Above 1 brightens the middle, below 1 darkens it.
輸出下限數字0The lowest value out.
輸出上限數字1The highest value out.
鉗制真否TrueWhether values beyond the input range are held at the output ends.

返回

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

乘加

函數

Multiplies every value by a factor and adds an offset: the plain arithmetic remap.

簽名
乘加(紋理: Texture, 乘數: 數字, 加數: 數字) -> Texture
Texture MultiplyAdd(
    Texture texture,
    double multiply = 1,
    double add = 0)

參數

名稱型別預設值說明
紋理Texture—The texture.
乘數數字1The factor.
加數數字0The offset, added after multiplying.

返回

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

色調分離

函數

Rounds values to a number of even steps: terraces, stylised bands.

簽名
色調分離(紋理: Texture, 級數: 整數) -> Texture
Texture Posterize(Texture texture, int steps = 4)

參數

名稱型別預設值說明
紋理Texture—The texture.
級數整數4How many distinct values remain, at least 2.

返回

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

閾值

函數

White where the value is at or above the threshold, black below: a hard mask.

簽名
閾值(紋理: Texture, 閾值: 數字) -> Texture
Texture Threshold(Texture texture, double threshold = 0.5)

參數

名稱型別預設值說明
紋理Texture—The texture.
閾值數字0.5The dividing value.

返回

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