元编程参考文档

高度派生贴图

8 个节点

本页内容 8

环境光遮蔽

函数

Ambient occlusion from a height: how much of the sky each point sees, dark in crevices and the mortar between bricks, white on open tops. Measured by looking for the horizon in several directions around each point.

签名
环境光遮蔽 -> Texture
    高度: Texture
    深度: 数字
    半径: 数字
    方向数: 整数
Texture AmbientOcclusion(
    Texture height,
    double depth = 0.04,
    double radius = 0.05,
    int directions = 12)

参数

名称类型默认值说明
高度Texture—The height, 0 to 1.
深度数字0.04How deep the surface is: a height of 1 rises this share of the texture's width.
半径数字0.05How far around each point is looked at, as a share of the texture's width.
方向数整数12How many directions are looked in; more is smoother.

返回

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

曲率

函数

Curvature from a height: bright on ridges and edges (convex), dark in grooves and dents (concave), middle grey where flat. The map edge wear and dirt are made from.

签名
曲率(高度: Texture, 半径: 数字, 强度: 数字) -> Texture
Texture Curvature(
    Texture height,
    double radius = 2,
    double intensity = 1)

参数

名称类型默认值说明
高度Texture—The height, 0 to 1.
半径数字2The size of the features measured, in pixels of a 1024-pixel texture: small catches sharp edges, large catches broad forms.
强度数字1How far from grey a given curvature goes.

返回

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

由法线生成曲率

函数

Curvature from a normal map: bright where the surface turns away (edges), dark where it turns in (grooves). For a normal map baked from a model, where no height exists.

签名
由法线生成曲率(法线: Texture, 强度: 数字) -> Texture
Texture CurvatureFromNormal(
    Texture normal,
    double intensity = 1)

参数

名称类型默认值说明
法线Texture—The normal map, OpenGL convention.
强度数字1How far from grey a given curvature goes.

返回

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

平坦法线

函数

A flat normal map: every point facing straight out.

签名
平坦法线(尺寸: 整数) -> Texture
Texture FlatNormal(int size = 1024)

参数

名称类型默认值说明
尺寸整数1024Width and height in pixels.

返回

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

翻转法线绿色通道

函数

Converts a normal map between OpenGL's convention (green up: glTF, Blender, Unity, Godot) and DirectX's (green down: Unreal), by inverting its green channel.

签名
翻转法线绿色通道(法线: Texture) -> Texture
Texture FlipNormalGreen(Texture normal)

参数

名称类型默认值说明
法线Texture—The normal map.

返回

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

法线混合

函数

Lays a detail normal map over a base one so both read - the detail's bumps follow the base's slopes - rather than averaging them flat (reoriented normal mapping).

签名
法线混合 -> Texture
    基础法线: Texture
    细节法线: Texture
    细节强度: 数字
Texture NormalBlend(
    Texture baseNormal,
    Texture detailNormal,
    double detailStrength = 1)

参数

名称类型默认值说明
基础法线Texture—The large forms.
细节法线Texture—The fine detail.
细节强度数字1How strong the detail is, 0 to 1 and beyond.

返回

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

由高度生成法线

函数

The normal map of a height: which way each point of the surface faces, packed into red (across), green (up) and blue (out). OpenGL's convention (green up) is glTF's and Blender's; DirectX's (green down) is Unreal's.

签名
由高度生成法线 -> Texture
    高度: Texture
    强度: 数字
    DirectX 约定: 真否
Texture NormalFromHeight(
    Texture height,
    double intensity = 4,
    bool directX = false)

参数

名称类型默认值说明
高度Texture—The height, 0 to 1.
强度数字4How steep the surface is for a given change of height; doubling it doubles the slopes.
DirectX 约定真否FalseUse DirectX's convention, green pointing down.

返回

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

明暗

函数

A height lit from one side, as a greyscale: the quickest way to see a height's form, and an emboss effect.

签名
明暗 -> Texture
    高度: Texture
    光照角度: 数字
    光照仰角: 数字
    强度: 数字
Texture Shade(
    Texture height,
    double lightAngle = 225,
    double lightElevation = 40,
    double intensity = 4)

参数

名称类型默认值说明
高度Texture—The height, 0 to 1.
光照角度数字225Where the light comes from, in degrees round: 0 from the right, 90 from below, 225 from the upper left.
光照仰角数字40How high the light is, in degrees above the surface.
强度数字4How steep the surface is for a given change of height.

返回

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