元编程参考文档

纹理混合

5 个节点

本页内容 5

算术

函数

Arithmetic between two textures, pixel by pixel.

签名
算术 -> Texture
    甲: Texture
    乙: Texture
    运算: Texture Operation
Texture Arithmetic(
    Texture a,
    Texture b,
    TextureOperation operation = TextureOperation.Add)

参数

名称类型默认值说明
甲Texture—The first operand.
乙Texture—The second operand.
运算Texture Operation加What to compute.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理混合
所属包
图像处理

与数值算术

函数

Arithmetic between a texture and a number, pixel by pixel.

签名
与数值算术 -> Texture
    纹理: Texture
    值: 数字
    运算: Texture Operation
Texture ArithmeticWithValue(
    Texture texture,
    double value = 0.5,
    TextureOperation operation = TextureOperation.Multiply)

参数

名称类型默认值说明
纹理Texture—The first operand.
值数字0.5The second operand.
运算Texture Operation乘What to compute.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理混合
所属包
图像处理

混合

函数

Lays the foreground over the background by a blend mode, as much as the opacity says and only where the mask is white. With no mask, everywhere.

签名
混合 -> Texture
    前景: Texture
    背景: Texture
    模式: Blend Mode
    不透明度: 数字
    蒙版: Texture
Texture Blend(
    Texture foreground,
    Texture background,
    BlendMode mode = BlendMode.Normal,
    double opacity = 1,
    Texture mask)

参数

名称类型默认值说明
前景Texture—What is laid on top.
背景Texture—What it is laid on; the result takes its size.
模式Blend Mode正常How the two combine.
不透明度数字1How much of the blend shows, 0 to 1.
蒙版Texture—Where it shows: white fully, black not at all. Optional.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理混合
所属包
图像处理

高度混合

函数

The higher of two heights at each pixel, with a soft seam: how stones sit in mortar, how two layers of rock meet. Also answers which one won, as a mask that is white where the second is on top.

签名
高度混合 -> (结果: Texture, 蒙版: Texture)
    高度甲: Texture
    高度乙: Texture
    偏移: 数字
    对比度: 数字
Texture HeightBlend(
    Texture heightA,
    Texture heightB,
    out Texture mask,
    double offset = 0,
    double contrast = 0.9)

参数

名称类型默认值说明
高度甲Texture—The first height.
高度乙Texture—The second height.
偏移数字0Raises the second height before comparing, -1 to 1.
对比度数字0.9How sharp the seam is, 0 (a broad mix) to 1 (a hard edge).

返回

结果Texture
蒙版Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理混合
所属包
图像处理

按蒙版插值

函数

Mixes from the first texture to the second by the mask: black takes the first, white the second.

签名
按蒙版插值 -> Texture
    第一个: Texture
    第二个: Texture
    蒙版: Texture
Texture Lerp(Texture first, Texture second, Texture mask)

参数

名称类型默认值说明
第一个Texture—Where the mask is black.
第二个Texture—Where the mask is white.
蒙版Texture—The mix at each pixel.

返回

结果Texture
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
纹理混合
所属包
图像处理