元编程参考文档

纹理扭曲

5 个节点

本页内容 5

方向扭曲

函数

Pushes each pixel one way by an amount read from a second texture: white pushes the full distance, black not at all. Ripples, leaning grass, streaks.

签名
方向扭曲 -> Texture
    纹理: Texture
    驱动纹理: Texture
    角度: 数字
    距离: 数字
Texture DirectionalWarp(
    Texture texture,
    Texture by,
    double angle = 0,
    double distance = 32)

参数

名称类型默认值说明
纹理Texture—The texture to distort.
驱动纹理Texture—How far each pixel is pushed, 0 to 1.
角度数字0The direction, in degrees: 0 right, 90 down.
距离数字32The full push, in pixels of a 1024-pixel texture.

返回

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

坡度模糊

函数

Smears a texture along the slopes of another, step by step, following each slope as it bends: the chipped edges of stone, eroded rock, paint that has run. Min eats into bright areas from their slopes, Max spreads them, Blur smears.

签名
坡度模糊 -> Texture
    纹理: Texture
    坡度来源: Texture
    采样数: 整数
    强度: 数字
    模式: Slope Blur Mode
Texture SlopeBlur(
    Texture texture,
    Texture slope,
    int samples = 8,
    double intensity = 8,
    SlopeBlurMode mode = SlopeBlurMode.Blur)

参数

名称类型默认值说明
纹理Texture—The texture to smear.
坡度来源Texture—The texture whose slopes are followed.
采样数整数8How many steps; more is smoother and slower.
强度数字8How far each step goes: at 1, a slope rising the full height across the texture steps 1 pixel of a 1024-pixel texture.
模式Slope Blur Mode模糊How the readings along the path combine.

返回

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

旋涡

函数

Twists a texture round its centre, most at the middle and not at all at the radius.

签名
旋涡(纹理: Texture, 圈数: 数字, 半径: 数字) -> Texture
Texture Swirl(
    Texture texture,
    double turns = 0.5,
    double radius = 0.5)

参数

名称类型默认值说明
纹理Texture—The texture.
圈数数字0.5How far the centre turns, in whole turns; negative twists the other way.
半径数字0.5Where the twist ends, as a share of the width.

返回

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

矢量扭曲

函数

Pushes each pixel by a vector field: the first texture's values move it across, the second's down, both centred on middle grey.

签名
矢量扭曲 -> Texture
    纹理: Texture
    横向: Texture
    纵向: Texture
    距离: 数字
Texture VectorWarp(
    Texture texture,
    Texture across,
    Texture down,
    double distance = 32)

参数

名称类型默认值说明
纹理Texture—The texture to distort.
横向Texture—Movement across, middle grey none.
纵向Texture—Movement down, middle grey none.
距离数字32The movement at white or black, in pixels of a 1024-pixel texture.

返回

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

扭曲

函数

Pushes each pixel along the slope of a second texture: where it rises, the image slides. Small amounts roughen edges; large ones swirl like marble.

签名
扭曲(纹理: Texture, 驱动纹理: Texture, 强度: 数字) -> Texture
Texture Warp(Texture texture, Texture by, double intensity = 2)

参数

名称类型默认值说明
纹理Texture—The texture to distort.
驱动纹理Texture—The texture whose slope pushes.
强度数字2How far: at 1, a slope that rises the full height across the whole texture pushes 4 pixels of a 1024-pixel texture.

返回

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