元编程参考文档

纹理风化

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
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理风化
所属包
图像处理