元編程參考文件

紋理扭曲

5 個節點

本頁內容 5

方向扭曲

函數

Pushes each pixel one way by an amount read from a second texture: white pushes the full distance, black not at all. Ripples, leaning grass, streaks.

簽名
方向扭曲 -> Texture
    紋理: Texture
    驅動紋理: Texture
    角度: 數字
    距離: 數字
Texture DirectionalWarp(
    Texture texture,
    Texture by,
    double angle = 0,
    double distance = 32)

參數

名稱型別預設值說明
紋理Texture—The texture to distort.
驅動紋理Texture—How far each pixel is pushed, 0 to 1.
角度數字0The direction, in degrees: 0 right, 90 down.
距離數字32The full push, in pixels of a 1024-pixel texture.

返回

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

坡度模糊

函數

Smears a texture along the slopes of another, step by step, following each slope as it bends: the chipped edges of stone, eroded rock, paint that has run. Min eats into bright areas from their slopes, Max spreads them, Blur smears.

簽名
坡度模糊 -> Texture
    紋理: Texture
    坡度來源: Texture
    取樣數: 整數
    強度: 數字
    模式: Slope Blur Mode
Texture SlopeBlur(
    Texture texture,
    Texture slope,
    int samples = 8,
    double intensity = 8,
    SlopeBlurMode mode = SlopeBlurMode.Blur)

參數

名稱型別預設值說明
紋理Texture—The texture to smear.
坡度來源Texture—The texture whose slopes are followed.
取樣數整數8How many steps; more is smoother and slower.
強度數字8How far each step goes: at 1, a slope rising the full height across the texture steps 1 pixel of a 1024-pixel texture.
模式Slope Blur Mode模糊How the readings along the path combine.

返回

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

旋渦

函數

Twists a texture round its centre, most at the middle and not at all at the radius.

簽名
旋渦(紋理: Texture, 圈數: 數字, 半徑: 數字) -> Texture
Texture Swirl(
    Texture texture,
    double turns = 0.5,
    double radius = 0.5)

參數

名稱型別預設值說明
紋理Texture—The texture.
圈數數字0.5How far the centre turns, in whole turns; negative twists the other way.
半徑數字0.5Where the twist ends, as a share of the width.

返回

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

向量扭曲

函數

Pushes each pixel by a vector field: the first texture's values move it across, the second's down, both centred on middle grey.

簽名
向量扭曲 -> Texture
    紋理: Texture
    橫向: Texture
    縱向: Texture
    距離: 數字
Texture VectorWarp(
    Texture texture,
    Texture across,
    Texture down,
    double distance = 32)

參數

名稱型別預設值說明
紋理Texture—The texture to distort.
橫向Texture—Movement across, middle grey none.
縱向Texture—Movement down, middle grey none.
距離數字32The movement at white or black, in pixels of a 1024-pixel texture.

返回

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

扭曲

函數

Pushes each pixel along the slope of a second texture: where it rises, the image slides. Small amounts roughen edges; large ones swirl like marble.

簽名
扭曲(紋理: Texture, 驅動紋理: Texture, 強度: 數字) -> Texture
Texture Warp(Texture texture, Texture by, double intensity = 2)

參數

名稱型別預設值說明
紋理Texture—The texture to distort.
驅動紋理Texture—The texture whose slope pushes.
強度數字2How far: at 1, a slope that rises the full height across the whole texture pushes 4 pixels of a 1024-pixel texture.

返回

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