纹理函数
5 个节点
本页内容 5
组合数值
函数Two textures combined by your function, value by value.
签名
组合数值 -> Texture
甲: Texture
乙: Texture
函数: Func<数字, 数字, 数字>Texture CombineValues(
Texture a,
Texture b,
Func<double, double, double> function)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 甲 | Texture | — | The first texture. |
| 乙 | Texture | — | The second texture. |
| 函数 | Func<数字, 数字, 数字> | — | The result for a pair of values. |
返回
| 结果 | Texture |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 纹理函数
- 所属包
- 图像处理
映射数值
函数Every value of a texture passed through your function: a custom curve, a remap no other node gives.
签名
映射数值(纹理: Texture, 函数: Func<数字, 数字>) -> Texture
Texture MapValues(
Texture texture,
Func<double, double> function)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 纹理 | Texture | — | The texture. |
| 函数 | Func<数字, 数字> | — | The new value for an old one. |
返回
| 结果 | Texture |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 纹理函数
- 所属包
- 图像处理
像素函数
函数A greyscale texture whose every pixel is your function of its position: across (u) and down (v), each 0 to 1 over the texture.
签名
像素函数(函数: Func<数字, 数字, 数字>, 尺寸: 整数) -> Texture
Texture PixelFunction(
Func<double, double, double> function,
int size = 256)参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 函数 | Func<数字, 数字, 数字> | — | The value at (u, v). |
| 尺寸 | 整数 | 256 | Width and height in pixels. |
返回
| 结果 | Texture |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 纹理函数
- 所属包
- 图像处理
采样纹理
函数The value of a texture at a point, 0 to 1 across and down, smoothly between pixels: for reading a texture inside a function.
签名
采样纹理(纹理: Texture, u: 数字, v: 数字) -> 数字
double SampleTexture(Texture texture, double u, double v)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 纹理 | Texture | — | The texture. |
| u | 数字 | — | Across, 0 to 1; beyond wraps. |
| v | 数字 | — | Down, 0 to 1; beyond wraps. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 纹理函数
- 所属包
- 图像处理
纹理取值范围
函数The lowest and highest values in a texture.
签名
纹理取值范围(纹理: Texture) -> (结果: 数字, 最大值: 数字)
double TextureRange(Texture texture, out double maximum)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 纹理 | Texture | — | The texture. |
返回
| 结果 | 数字 |
| 最大值 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 纹理函数
- 所属包
- 图像处理