元編程參考文件

地形侵蝕蒙版

6 個節點

本頁內容 6

模糊

函數

Gaussian blur with a radius (sigma) in cells, clamped at the borders.

簽名
模糊(圖: Scalar Field, 標準差(儲存格): 數字) -> Scalar Field
ScalarField2D Blur(ScalarField2D map, double sigmaCells = 1)

參數

名稱型別預設值說明
圖Scalar Field—Map to blur.
標準差(儲存格)數字1Gaussian sigma in cells.

返回

結果Scalar Field
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕蒙版
所屬包
程序化生成

指數蒙版

函數

Saturating ramp for thicknesses (wear, deposition, debris): 1 − exp(−value / scale), so the mask reaches 0.63 at one scale and 0.95 at three.

簽名
指數蒙版 -> Scalar Field
    圖: Scalar Field
    尺度(米): 數字
    模糊(儲存格): 數字
ScalarField2D ExponentialMask(
    ScalarField2D map,
    double scale = 0.5,
    double blurCells = 0.5)

參數

名稱型別預設值說明
圖Scalar Field—Raw map, metres.
尺度(米)數字0.5Thickness, metres, at which the mask reaches 0.63.
模糊(儲存格)數字0.5Gaussian blur radius (sigma) in cells applied afterwards; 0 for none.

返回

結果Scalar Field
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕蒙版
所屬包
程序化生成

線性蒙版

函數

Linear ramp: 0 at or below Low, 1 at or above High.

簽名
線性蒙版 -> Scalar Field
    圖: Scalar Field
    低值: 數字
    高值: 數字
    模糊(儲存格): 數字
ScalarField2D LinearMask(
    ScalarField2D map,
    double low = 0,
    double high = 1,
    double blurCells = 0.5)

參數

名稱型別預設值說明
圖Scalar Field—Raw map.
低值數字0Value that maps to 0.
高值數字1Value that maps to 1.
模糊(儲存格)數字0.5Gaussian blur radius (sigma) in cells applied afterwards; 0 for none.

返回

結果Scalar Field
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕蒙版
所屬包
程序化生成

對數蒙版

函數

Logarithmic ramp for quantities spanning orders of magnitude (drainage area, sediment flux): 0 at or below Low, 1 at or above High.

簽名
對數蒙版 -> Scalar Field
    圖: Scalar Field
    低值: 數字
    高值: 數字
    模糊(儲存格): 數字
ScalarField2D LogarithmicMask(
    ScalarField2D map,
    double low = 1000,
    double high = 10000000,
    double blurCells = 0.5)

參數

名稱型別預設值說明
圖Scalar Field—Raw map with positive values.
低值數字1000Value that maps to 0.
高值數字10000000Value that maps to 1.
模糊(儲存格)數字0.5Gaussian blur radius (sigma) in cells applied afterwards; 0 for none.

返回

結果Scalar Field
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕蒙版
所屬包
程序化生成

百分位蒙版

函數

Ramp between two percentiles of the map itself. This adapts to the terrain, so the same value can mean different things on different maps; prefer the fixed conversions for anything that must stay consistent.

簽名
百分位蒙版 -> Scalar Field
    圖: Scalar Field
    低百分位: 數字
    高百分位: 數字
    對數: 真否
    模糊(儲存格): 數字
ScalarField2D PercentileMask(
    ScalarField2D map,
    double lowPercentile = 0.02,
    double highPercentile = 0.98,
    bool logarithmic = false,
    double blurCells = 0.5)

參數

名稱型別預設值說明
圖Scalar Field—Raw map.
低百分位數字0.02Percentile (0..1) that maps to 0.
高百分位數字0.98Percentile (0..1) that maps to 1.
對數真否FalseRamp in log space, for area and flux maps.
模糊(儲存格)數字0.5Gaussian blur radius (sigma) in cells applied afterwards; 0 for none.

返回

結果Scalar Field
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕蒙版
所屬包
程序化生成

有符號蒙版

函數

Diverging ramp for signed maps (height change): 0.5 at zero, 0 at −Range and 1 at +Range.

簽名
有符號蒙版 -> Scalar Field
    圖: Scalar Field
    範圍: 數字
    模糊(儲存格): 數字
ScalarField2D SignedMask(
    ScalarField2D map,
    double range = 10,
    double blurCells = 0.5)

參數

名稱型別預設值說明
圖Scalar Field—Raw signed map.
範圍數字10Magnitude that maps to 0 or 1.
模糊(儲存格)數字0.5Gaussian blur radius (sigma) in cells applied afterwards; 0 for none.

返回

結果Scalar Field
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
地形侵蝕蒙版
所屬包
程序化生成