元編程參考文件

紋理風化

7 個節點

本頁內容 7

裂紋

函數

Cracks: thin dark lines branching across a surface, from the borders of a warped cellular pattern, broken so they do not close into cells. Answers a height (cracks low) and a mask (cracks white).

簽名
裂紋 -> (結果: Texture, 蒙版: Texture)
    尺度: 整數
    寬度: 數字
    覆蓋率: 數字
    遊走: 數字
    隨機種子: 整數
    尺寸: 整數
Texture Cracks(
    out Texture mask,
    int scale = 5,
    double width = 0.02,
    double coverage = 0.6,
    double wander = 0.5,
    int seed = 0,
    int size = 1024)

參數

名稱型別預設值說明
尺度整數5How large the crack network is: cells across the texture.
寬度數字0.02How wide a crack is, as a share of a cell.
覆蓋率數字0.6How much of the network is cracked, 0 to 1.
遊走數字0.5How much the cracks wander off straight lines, 0 to 1.
隨機種子整數0Which cracks.
尺寸整數1024Width and height in pixels.

返回

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

汙垢

函數

Where dirt gathers: white in crevices and hollows (from ambient occlusion), spread unevenly by noise.

簽名
汙垢 -> Texture
    環境光遮蔽: Texture
    程度: 數字
    打散: 數字
    噪聲尺度: 整數
    對比度: 數字
    隨機種子: 整數
Texture Dirt(
    Texture ambientOcclusion,
    double amount = 0.5,
    double breakup = 0.5,
    int noiseScale = 6,
    double contrast = 0.4,
    int seed = 0)

參數

名稱型別預設值說明
環境光遮蔽Texture—The surface's ambient occlusion, dark in crevices.
程度數字0.5How far the dirt spreads, 0 to 1.
打散數字0.5How much noise breaks it up, 0 to 1.
噪聲尺度整數6The noise's scale: cells across the texture.
對比度數字0.4How hard its edge is, 0 to 1.
隨機種子整數0Which noise.

返回

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

邊緣磨損

函數

Where edges are worn: white along convex edges and corners, broken up by noise. Paint chipped off metal, polish on stone.

簽名
邊緣磨損 -> Texture
    曲率: Texture
    程度: 數字
    打散: 數字
    噪聲尺度: 整數
    對比度: 數字
    隨機種子: 整數
Texture EdgeWear(
    Texture curvature,
    double amount = 0.5,
    double breakup = 0.6,
    int noiseScale = 8,
    double contrast = 0.7,
    int seed = 0)

參數

名稱型別預設值說明
曲率Texture—The surface's curvature, bright on edges (from Curvature, or baked).
程度數字0.5How far the wear spreads, 0 to 1.
打散數字0.6How much noise breaks the wear's edge, 0 to 1.
噪聲尺度整數8The noise's scale: cells across the texture.
對比度數字0.7How hard the wear's edge is, 0 to 1.
隨機種子整數0Which noise.

返回

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

汙漬

函數

A ready-made grunge map: an irregular greyscale for breaking up roughness, colour or any mask so a surface does not look new.

簽名
汙漬(種類: Grunge Kind, 隨機種子: 整數, 尺寸: 整數) -> Texture
Texture Grunge(
    GrungeKind kind = GrungeKind.Mottled,
    int seed = 0,
    int size = 1024)

參數

名稱型別預設值說明
種類Grunge Kind斑駁Which kind of grunge.
隨機種子整數0Which random variation.
尺寸整數1024Width and height in pixels.

返回

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

流痕

函數

Streaks running down from a mask's lower edges, as rain leaves under window sills and rust runs from bolts. With no source, streaks start anywhere.

簽名
流痕 -> Texture
    來源: Texture
    長度: 數字
    密度: 數字
    隨機種子: 整數
    尺寸: 整數
Texture Leaks(
    Texture source,
    double length = 0.3,
    double density = 0.5,
    int seed = 0,
    int size = 1024)

參數

名稱型別預設值說明
來源Texture—Where leaks start, white; optional.
長度數字0.3How far they run, as a share of the texture's height.
密度數字0.5How many streaks, 0 to 1.
隨機種子整數0Which streaks.
尺寸整數1024Width and height in pixels, when there is no source.

返回

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

劃痕

函數

Scratches: thin straight strokes scattered across a surface, mostly in one direction or every which way.

簽名
劃痕 -> Texture
    數量: 整數
    長度: 數字
    寬度: 數字
    角度隨機: 數字
    隨機種子: 整數
    尺寸: 整數
Texture Scratches(
    int count = 300,
    double length = 0.15,
    double width = 0.02,
    double angleRandom = 1,
    int seed = 0,
    int size = 1024)

參數

名稱型別預設值說明
數量整數300How many scratches.
長度數字0.15How long a scratch is, as a share of the texture.
寬度數字0.02How thick a scratch is, as a share of its length.
角度隨機數字1How far scratches stray from one direction, 0 (all parallel) to 1 (any).
隨機種子整數0Which scratches.
尺寸整數1024Width and height in pixels.

返回

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

水位

函數

Water standing in the low places of a height: white where the surface is below the level, with a soft shoreline. Puddles on cobbles, water in mortar, a flooded floor.

簽名
水位 -> (結果: Texture, 壓平後的高度: Texture)
    高度: Texture
    水位: 數字
    岸線柔和度: 數字
Texture WaterLevel(
    Texture height,
    out Texture flattened,
    double level = 0.3,
    double shoreline = 0.04)

參數

名稱型別預設值說明
高度Texture—The surface's height.
水位數字0.3The water's level, 0 to 1.
岸線柔和度數字0.04How soft the water's edge is.

返回

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