元编程参考文档

纹理通道

10 个节点

本页内容 10

颜色变化

函数

Varies a colour texture's hue, saturation and value by a greyscale map, centred on middle grey: grey leaves the colour alone, white and black push it opposite ways. Per-brick or per-plank colour variation from a random-per-cell map.

签名
颜色变化 -> Texture
    颜色: Texture
    变化: Texture
    色相范围: 数字
    饱和度范围: 数字
    明度范围: 数字
Texture ColorVariation(
    Texture color,
    Texture variation,
    double hueRange = 0.03,
    double saturationRange = 0.15,
    double valueRange = 0.15)

参数

名称类型默认值说明
颜色Texture—The colour texture.
变化Texture—The map driving the variation; middle grey changes nothing.
色相范围数字0.03The largest hue shift, as a share of the wheel.
饱和度范围数字0.15The largest saturation change.
明度范围数字0.15The largest lightness change.

返回

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

渐变映射

函数

A greyscale texture coloured through a gradient: each value picks the ramp's colour at that position. How a height becomes a believable base colour.

签名
渐变映射(灰度: Texture, 渐变: Color Ramp) -> Texture
Texture GradientMap(Texture greyscale, ColorRamp gradient)

参数

名称类型默认值说明
灰度Texture—The values, 0 to 1.
渐变Color Ramp—The colours along 0 to 1.

返回

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

多段渐变映射

函数

A greyscale texture coloured through a gradient written as text: each stop a position and a colour, separated by semicolons - 0 #2B1A12; 0.5 #8A4B2F; 1 #D9A273. The same stops a Color Ramp takes.

签名
多段渐变映射(灰度: Texture, 色标: 文本) -> Texture
Texture GradientMapStops(
    Texture greyscale,
    string stops = "0 #000000; 1 #FFFFFF")

参数

名称类型默认值说明
灰度Texture—The values, 0 to 1.
色标文本0 #000000; 1 #FFFFFFThe gradient's stops, a position and a colour each.

返回

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

三色渐变映射

函数

A greyscale texture coloured between three colours: black, middle grey and white take the dark, middle and light ones.

签名
三色渐变映射 -> Texture
    灰度: Texture
    暗色: 颜色
    中间色: 颜色
    亮色: 颜色
Texture GradientMapThreeColors(
    Texture greyscale,
    ColorElement dark,
    ColorElement middle,
    ColorElement light)

参数

名称类型默认值说明
灰度Texture—The values, 0 to 1.
暗色颜色—The colour of 0.
中间色颜色—The colour of 0.5.
亮色颜色—The colour of 1.

返回

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

双色渐变映射

函数

A greyscale texture coloured between two colours: black takes the dark one, white the light one.

签名
双色渐变映射(灰度: Texture, 暗色: 颜色, 亮色: 颜色) -> Texture
Texture GradientMapTwoColors(
    Texture greyscale,
    ColorElement dark,
    ColorElement light)

参数

名称类型默认值说明
灰度Texture—The values, 0 to 1.
暗色颜色—The colour of 0.
亮色颜色—The colour of 1.

返回

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

灰度

函数

A colour texture's brightness as greyscale: its luminance.

签名
灰度(颜色: Texture) -> Texture
Texture Greyscale(Texture color)

参数

名称类型默认值说明
颜色Texture—The texture.

返回

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

色相饱和度明度

函数

Shifts the hue and scales the saturation and lightness of a colour texture, computed in the encoded colour a person sees so the sliders behave as a paint program's do.

签名
色相饱和度明度 -> Texture
    颜色: Texture
    色相偏移: 数字
    饱和度: 数字
    明度: 数字
Texture HueSaturationLightness(
    Texture color,
    double hueShift = 0,
    double saturation = 1,
    double lightness = 0)

参数

名称类型默认值说明
颜色Texture—The colour texture.
色相偏移数字0Turns every hue by this share of the colour wheel, -0.5 to 0.5.
饱和度数字1Multiplies saturation: 0 is grey, 1 unchanged.
明度数字0Added to lightness, -1 to 1.

返回

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

合并通道

函数

Four greyscale textures as one colour texture's channels. Alpha is 1 where none is given. Merged as data, values unchanged, which is how packed maps (occlusion, roughness, metallic) are built.

签名
合并通道 -> Texture
    红: Texture
    绿: Texture
    蓝: Texture
    透明度: Texture
    作为颜色: 真否
Texture Merge(
    Texture red,
    Texture green,
    Texture blue,
    Texture alpha,
    bool asColor = false)

参数

名称类型默认值说明
红Texture—The red channel.
绿Texture—The green channel.
蓝Texture—The blue channel.
透明度Texture—The alpha channel; optional.
作为颜色真否FalseWhether the channels are colour in linear light rather than data.

返回

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

拆分通道

函数

A colour texture's four channels as four greyscale textures.

签名
拆分通道(颜色: Texture) -> (结果: Texture, 绿: Texture, 蓝: Texture, 透明度: Texture)
Texture Split(
    Texture color,
    out Texture green,
    out Texture blue,
    out Texture alpha)

参数

名称类型默认值说明
颜色Texture—The colour texture.

返回

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

着色

函数

Multiplies a texture by a colour: tints white to that colour and darkens everything else toward it.

签名
着色(纹理: Texture, 颜色: 颜色) -> Texture
Texture Tint(Texture texture, ColorElement color)

参数

名称类型默认值说明
纹理Texture—The texture; greyscale becomes colour.
颜色颜色—The tint.

返回

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