元编程参考文档

纹理调整

13 个节点

本页内容 13

自动色阶

函数

Stretches the values so the darkest becomes 0 and the brightest 1.

签名
自动色阶(纹理: Texture) -> Texture
Texture AutoLevels(Texture texture)

参数

名称类型默认值说明
纹理Texture—The texture.

返回

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

钳制

函数

Holds every value between a minimum and a maximum.

签名
钳制(纹理: Texture, 最小值: 数字, 最大值: 数字) -> Texture
Texture Clamp(
    Texture texture,
    double minimum = 0,
    double maximum = 1)

参数

名称类型默认值说明
纹理Texture—The texture.
最小值数字0The lowest value let through.
最大值数字1The highest value let through.

返回

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

对比度与亮度

函数

Pushes values away from (contrast above 0) or toward (below 0) the middle grey, and shifts them all up or down.

签名
对比度与亮度(纹理: Texture, 对比度: 数字, 亮度: 数字) -> Texture
Texture ContrastBrightness(
    Texture texture,
    double contrast = 0.25,
    double brightness = 0)

参数

名称类型默认值说明
纹理Texture—The texture.
对比度数字0.25-1 flattens to grey, 0 leaves alone, 1 doubles the spread.
亮度数字0Added to every value.

返回

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

曲线

函数

Remaps values through a curve given as heights at evenly spaced points from 0 to 1, passed through smoothly: [0, 1] is no change, [0, 0.2, 1] darkens the middle, [1, 0] inverts.

签名
曲线(纹理: Texture, 控制点: 数字数组) -> Texture
Texture Curve(Texture texture, double[] points)

参数

名称类型默认值说明
纹理Texture—The texture.
控制点数字数组—The curve's height at evenly spaced inputs from 0 to 1; at least two.

返回

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

去除光照

函数

Takes the light a photograph was taken in out of its colour: the broad brightening and darkening that a sun, a sky or a flash laid across the surface, found as the photograph's brightness smoothed wider than any of its own detail and divided out, keeping each place's hue. What is left is the surface's own colour, which a material needs so its renderer can light it afresh.

签名
去除光照 -> Texture
    纹理: Texture
    尺度: 数字
    强度: 数字
    已可平铺: 真否
Texture Delight(
    Texture texture,
    double scale = 128,
    double strength = 1,
    bool tiles = false)

参数

名称类型默认值说明
纹理Texture—The photograph.
尺度数字128How broad a change counts as light rather than the surface's own pattern, in pixels of a 1024-pixel texture: larger keeps more of the surface's own large variation.
强度数字1How much of the light to take out, 0 to 1.
已可平铺真否FalseWhether the photograph already tiles, as a scan made for it does: then the light is measured across its edges as if it repeated, so the result still tiles. A plain photograph's light does not repeat, so it is measured up to its edges.

返回

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

直方图范围

函数

Squeezes the values toward a middle: range 1 leaves them, range 0 makes everything the position's value. For calming a busy texture before it is mixed in.

签名
直方图范围(纹理: Texture, 范围: 数字, 位置: 数字) -> Texture
Texture HistogramRange(
    Texture texture,
    double range = 0.5,
    double position = 0.5)

参数

名称类型默认值说明
纹理Texture—The texture.
范围数字0.5How much of the spread is kept, 0 to 1.
位置数字0.5Where the values gather, 0 to 1.

返回

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

直方图扫描

函数

Turns a gradient into a mask with an edge you can place and soften: everything above the position becomes white, everything below black, over a transition as wide as the contrast leaves it. Sliding the position grows or shrinks the mask - the tool for eroding, wearing and spreading.

签名
直方图扫描(纹理: Texture, 位置: 数字, 对比度: 数字) -> Texture
Texture HistogramScan(
    Texture texture,
    double position = 0.5,
    double contrast = 0.5)

参数

名称类型默认值说明
纹理Texture—The texture.
位置数字0.5Where the edge is, 0 to 1; higher keeps less white.
对比度数字0.5How sharp the edge is, 0 (the gradient untouched) to 1 (a hard threshold).

返回

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

直方图选择

函数

Selects a band of values: white where the value is near the position, falling to black outside the range, softened by contrast. For picking out one level of a height, such as the tops of bricks.

签名
直方图选择 -> Texture
    纹理: Texture
    位置: 数字
    范围: 数字
    对比度: 数字
Texture HistogramSelect(
    Texture texture,
    double position = 0.5,
    double range = 0.25,
    double contrast = 0.5)

参数

名称类型默认值说明
纹理Texture—The texture.
位置数字0.5The value selected, 0 to 1.
范围数字0.25How wide the selected band is.
对比度数字0.5How hard the band's edges are.

返回

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

反相

函数

One minus each value: black becomes white.

签名
反相(纹理: Texture) -> Texture
Texture Invert(Texture texture)

参数

名称类型默认值说明
纹理Texture—The texture.

返回

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

色阶

函数

Remaps values: what was at the input low becomes the output low, the input high the output high, with gamma bending the middle. The single most used node in procedural texturing.

签名
色阶 -> Texture
    纹理: Texture
    输入下限: 数字
    输入上限: 数字
    伽马: 数字
    输出下限: 数字
    输出上限: 数字
    钳制: 真否
Texture Levels(
    Texture texture,
    double inputLow = 0,
    double inputHigh = 1,
    double gamma = 1,
    double outputLow = 0,
    double outputHigh = 1,
    bool clamp = true)

参数

名称类型默认值说明
纹理Texture—The texture.
输入下限数字0The value that becomes the output low.
输入上限数字1The value that becomes the output high.
伽马数字1Above 1 brightens the middle, below 1 darkens it.
输出下限数字0The lowest value out.
输出上限数字1The highest value out.
钳制真否TrueWhether values beyond the input range are held at the output ends.

返回

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

乘加

函数

Multiplies every value by a factor and adds an offset: the plain arithmetic remap.

签名
乘加(纹理: Texture, 乘数: 数字, 加数: 数字) -> Texture
Texture MultiplyAdd(
    Texture texture,
    double multiply = 1,
    double add = 0)

参数

名称类型默认值说明
纹理Texture—The texture.
乘数数字1The factor.
加数数字0The offset, added after multiplying.

返回

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

色调分离

函数

Rounds values to a number of even steps: terraces, stylised bands.

签名
色调分离(纹理: Texture, 级数: 整数) -> Texture
Texture Posterize(Texture texture, int steps = 4)

参数

名称类型默认值说明
纹理Texture—The texture.
级数整数4How many distinct values remain, at least 2.

返回

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

阈值

函数

White where the value is at or above the threshold, black below: a hard mask.

签名
阈值(纹理: Texture, 阈值: 数字) -> Texture
Texture Threshold(Texture texture, double threshold = 0.5)

参数

名称类型默认值说明
纹理Texture—The texture.
阈值数字0.5The dividing value.

返回

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