元編程參考文件

高度派生貼圖

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
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
高度派生貼圖
所屬包
影像處理